Uncaught SyntaxError: Unexpected token <
See original GitHub issueDo you want to request a feature or report a bug? bug What is the current behavior?
- The app doesn’t render at all
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn’t have dependencies other than React. Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new) example below: Link to broken App What is the expected behavior?
- The app should render
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React? react v16 chrome
Notes I am using firebase. my public directory is build. I have had scenarios where It just worked when I wrote ./build/. I’m frustrated please help.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (1 by maintainers)

Top Related StackOverflow Question
@charbelsako Commenting the service worker code won’t change anything. The problem is that a service worker is registered in your browser which causes this problem.
However, you won’t have this problem anymore as you stopped registering service workers.
To properly register a service workers, you can probably do it in the devtools of your browser ( in Chrome it’s in the application tab, I don’t know for other browsers)
Hi, could it be causd by a service worker serving an old version of your html and you updated your js assets ? Does it happens if you unregister service workers ?