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

后端 未结 6 1591
半阙折子戏
半阙折子戏 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:09

    I have experienced this error when lazy loading modules.

    It was an Angular / Iconic PWA and was related to a missing import:

    import { SharedModule } from '@shared/shared.module';
    

    Also see:

    • Angular 2. Error: Loading chunk failed
    • How to overcome loading chunk failed with Angular lazy loaded modules

提交回复
热议问题