Skip to content

Instantly share code, notes, and snippets.

@tdgroot
Last active May 11, 2020 22:19
Show Gist options
  • Save tdgroot/f95c398c565d9bbb83e0a650cdf67617 to your computer and use it in GitHub Desktop.
Save tdgroot/f95c398c565d9bbb83e0a650cdf67617 to your computer and use it in GitHub Desktop.
@tdgroot
Copy link
Author

tdgroot commented Oct 17, 2019

Install this patch with cweagans/composer-patches.

composer.json

...
    "extra": {
        "magento-force": "override",
        "patches": {
            "magento/module-theme": {
                "fix_baler_jquery_cookie": "https://gist.github.com/tdgroot/f95c398c565d9bbb83e0a650cdf67617/raw/69ee2d001ff509d25d1875743e417d914e20fd85/fix_baler_jquery_cookie.patch"
            }
        }
    },
...

@yeevy
Copy link

yeevy commented May 7, 2020

Hi,

The code must have changed recently as this advice wasn't working for me, I had to tweak and host my own patch.

-- a/view/base/requirejs-config.js	2019-10-17 10:01:02.082764376 +0200
+++ b/view/base/requirejs-config.js	2019-10-17 09:56:53.436000000 +0200
@@ -47,7 +47,8 @@
         'tinymce': 'tiny_mce/tiny_mce_src'
     },
     'deps': [
-        'jquery/jquery-migrate'
+        'jquery/jquery-migrate',
+        'jquery/jquery.cookie'
     ],
     'config': {
         'mixins': {

Thanks for mentioning composer-patches, that's going to come in handy a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment