Angular : Error: Uncaught (in promise) at webpackAsyncContext (eval at ./src/$$_lazy_route_resource

后端 未结 10 685
独厮守ぢ
独厮守ぢ 2020-12-14 15:32

I\'m upgrading from Angular 4.0.0 to Angular 5.2.6

i\'m facing some problem to get lazy module loading working.

with

10条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-14 15:52

    I have changed the order of imports in my app.module.ts as mentioned here

    So you need to have it for example like this:

    imports: [
      BrowserModule,
      FormsModule,
      HeroesModule,
      AppRoutingModule
    ]
    

    The most important is to have First BrowserModule and at the end AppRoutingModule.

提交回复
热议问题