Uncaught SyntaxError: Unexpected end of input
When I have Google Analytics Enhance Ecommerce Pro enabled I get the error- Uncaught SyntaxError: Unexpected end of input when I am on a category page and click to go to an item page. When I disable the extension the error goes away. I am on the most recent version of the extension and I am on Magento 2.4.2. How can I resolve this?
-
Hi Tyler,
Usually the Uncaught SyntaxError: Unexpected end of input error in JavaScript occurs due to missing parentheses, bracket, or quote. However, it can also happen when we try to parse an empty JSON. It could be that the extension that you are using is trying to run a javascript code where either of the above is true. Maybe a minification or bundling caused it. Check out this link https://www.moreonfew.com/uncaught-syntaxerror-unexpected-end-of-input-resolved/ from google search where there are some examples that can be helpful to debug I guess.
Please sign in to leave a comment.
Comments
1 comment