Lazy load Angular 5 error: $$_lazy_route_resource lazy recursive

后端 未结 9 2028
傲寒
傲寒 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 had the same problem and managed to solve it by adding my lazy loaded modules to my angular CLI config file (angular.json). See my answer here: Angular 5 lazy loading Error: Cannot find module

提交回复
热议问题