How to fixed Uncaught SyntaxError: Unexpected token } in JSON at position Magento?

Magento page console error Uncaught SyntaxError: Unexpected token } in JSON at position 530 while you have made mistake to your code.

Code with Error in a template file: Continue reading “How to fixed Uncaught SyntaxError: Unexpected token } in JSON at position Magento?”

How to resolved Uncaught SyntaxError: Unexpected token ‘ in JSON at position 159 in Magento?

While Developing features with Magento and javascript, sometimes you are facing an error in the browser console for the unexpected token defined in JSON and that will break your Magento functionality on that page.

This type of error we are facing is due to tiny mistakes in javascript JSON Declaration in our code.

This error is coming because our javascript snippet declaration using script text x-magento-init syntax has minor mistakes. Continue reading “How to resolved Uncaught SyntaxError: Unexpected token ‘ in JSON at position 159 in Magento?”

How to fixed Uncaught TypeError: Constr is not a constructor Error in Magento?

Javascript console Uncaught TypeError: Constr is not a constructor error that will be seen when we have made some mistakes on the javascript file in Magento.

Error structure looks like, Continue reading “How to fixed Uncaught TypeError: Constr is not a constructor Error in Magento?”