'Unexpected token <' on every new build of angular production PWA until site refresh

后端 未结 6 1353
夕颜
夕颜 2021-02-13 00:35

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

6条回答
  •  时光说笑
    2021-02-13 01:19

    This usually happens for me when the requested resource returns 404 and instead of requested JS file you receive your index.html which has tags hence '<' token. Could it somehow be the case? Say you have versioning on your scripts and rebuild invalidates old URLs or something like that.

提交回复
热议问题