I know there are some similar questions like so unexpected token after angular 2 production build but it doesnt actually answer my question.
Basically I have an angular
Double check your cache headers. Chrome doesn't always listen to no-cache. If you've visited the site recently chrome will load index.html from cache. Causing the error.
We've changed our index.html to no-store and that seemed to solve the issue. https://gertjans.home.xs4all.nl/javascript/cache-control.html