我想实现延迟加载,但得到的错误如下 ** ERROR Error: Uncaught (in promise): Error: BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import
它的工作对ng serve但给错误如下 ERROR in Unexpected value 'MaterialModule in E:/Code/employee-web/node_modules/@angular/material/typings/index.d.ts'
impor ted by the module 'SharedModule in E:/Code/employee-web
Tried with these approaches我创建了一个名为头部的组件,其中包含导航。用户是一个包含用户列表和用户详细信息组件的模块,该组件由延迟加载技术实现。与用户一起,我创建了Home组件和Dashboard组件。我能够重定向到家庭和仪表板页面,但不能转到用户页面,我已经在所有组件中添加了页眉组件()。当我尝试重定向到用户页面时,以下是标题: core.es5.js:1020 ERR