-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error - is not a function: require(['domReady!'], function() #238
Comments
Same here. Updated to Magento 2.4.6 and Klaviyo integration stopped working. Reauthorize is working, but still reporting error after it. Don't know if the issues are related. @jesperbrejning I think this isn't API related or is it? Update I found my problem which can be checked here magento/magento2#37278 |
I don't think it's the same error I see, because we don't have special characters in the sku. But we do have special characters in ex. the "Name". Could that cause the error? script text="text/javascript"> |
@jesperbrejning Can you please specify the error you are seeing on the console? Special characters should not cause issues in onsite tracking. |
We are seeing this error on all product view pages. The error in console is the following: Uncaught ReferenceError: require is not defined With reference to this function in the code: <script text="text/javascript"> require(['domReady!'], function () { var _learnq = window._learnq || []; _learnq.push(['track', 'Viewed Product', {"ProductID":"68475","Name":"Pixi-bog - Bondeg\u00e5rdens dyr m. Sebastian Klein (1 bog, ass.)","SKU":"9788711698518","URL":"https:\/\/www.babygear.dk\/pixi-serie-bondegardens-dyr-med-sebastian-klein.html","Price":"15.00","FinalPrice":"15.00","Categories":["Pixib\u00f8ger"],"ImageURL":"https:\/\/www.babygear.dk\/media\/catalog\/product\/cache\/44d872830c388882e3e32a2a33f56854\/9\/7\/9788711698518.jpg"}]); _learnq.push(['trackViewedItem', {"Title":"Pixi-bog - Bondeg\u00e5rdens dyr m. Sebastian Klein (1 bog, ass.)","ItemId":"68475","Url":"https:\/\/www.babygear.dk\/pixi-serie-bondegardens-dyr-med-sebastian-klein.html","Categories":["Pixib\u00f8ger"],"Metadata":{"Price":"15.00"},"ImageURL":"https:\/\/www.babygear.dk\/media\/catalog\/product\/cache\/44d872830c388882e3e32a2a33f56854\/9\/7\/9788711698518.jpg"}]); }); </script> |
@jesperbrejning I am facing the same issue whenever I put my website in production mode it is showing different errors in console like -
We have custom theme them and more than 70 extensions, unable to find the cause what happened, the site was initially in 2.4.5-p2 and we upgraded it to 2.4.6-p3 and these issue we are facing from long time |
Environment details
PHP version: 8.1
Magento version: 2.4.6
Klaviyo extension version: 4.0.10
Anything else that would help a developer reproduce the bug?
Steps to reproduce
After upgrade to Magento version 2.4.6 an error on this function :
require(['domReady!'], function()
Expected result
No errors in Google console
Actual result
Error in Google Console: require(['domReady!'], function()
Additional information
No response
The text was updated successfully, but these errors were encountered: