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

前端 未结 11 2277
青春惊慌失措
青春惊慌失措 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:55

    in my case I have faced it when tried to concat one routes array to another:

    export const businesslogicState: Routes = BUSINESSLOGIC_ROUTES.concat(gamesRoutes);
    

    each parts of concat were Route[]

    changing one element array gamesRoutes to Route object itself didn't help, still getting the same error.

提交回复
热议问题