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

后端 未结 6 1590
半阙折子戏
半阙折子戏 2021-02-13 00:26

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.

提交回复
热议问题