问题描述:
core.js:4197 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 CommonModule instead.
Error: BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.
解决方案:
在xxx.module.ts文件中去除【BrowserModule】引用,改为引用:import { CommonModule } from '@angular/common';