Uncaught Syntaxerror: Unexpected Token '<' In Main.546ac9e6.chunk.js:1
We have this web app that is built using create-react-app and was deployed. Now we get this error in our console. Uncaught SyntaxError: Unexpected token '<' Most of the answers
Solution 1:
Your server cannot find the .js
file, and your web server is returning either a 404 page or the default index.html
. That's why it says 'unexpected token <', from the <DOCTYPE
tag. You should see what the response is in your network tab from the main.chunk.js
, and also verify if it's loading from the correct location
Post a Comment for "Uncaught Syntaxerror: Unexpected Token '<' In Main.546ac9e6.chunk.js:1"