延迟加载模块时发生运行时错误

时间:2018-12-10 11:04:00

标签: javascript angular lazy-loading

在分别延迟加载组件时,出现以下运行时错误。我正在使用Angular6。问题是,当我将loadChildren写入另一个组件的路由模块时,这是发生的错误。任何帮助将不胜感激。

Component 1's routing module:

    {
      path: 'componentTwo',
      canActivate: [AuthGuard],
     loadChildren:'../component/component.module#ComponentTwoModule'
    }

错误屏幕截图

Screen Shot

1 个答案:

答案 0 :(得分:0)

听起来像是您注入的组件或模块中的错误