Angular CLI ERROR in Cannot read property 'loadChildren' of null

前端 未结 11 2268
青春惊慌失措
青春惊慌失措 2021-01-01 12:24

I\'m converting a project to use angular cli and everything is working (once it\'s build) but i\'ve got a weird behaviour during build.

with ng serve I

11条回答
  •  独厮守ぢ
    2021-01-01 12:59

    Mocks, Components, and RouteGuards

    Another thing to check is if you're mocking/stubbing any classes in for dummy-components on a route declaration. It seems it can happen for mocked RouteGuards as well.

提交回复
热议问题