Lazy load Angular 5 error: $$_lazy_route_resource lazy recursive

后端 未结 9 2038
傲寒
傲寒 2020-12-29 20:20

I\'m using angular cli AoT compilation. When I try to make a lazy load component following this tutorial, I got the error below:

ERROR Error         


        
9条回答
  •  余生分开走
    2020-12-29 21:03

    I got the same issue.fix it by using

     {path:'listes' ,loadChildren: ()=>ListModule} not {path:'listes' ,loadChildren: 'app/component/list/list.module#ListModule'}
    

提交回复
热议问题