I'm trying to use lazy load one of my modules.
When navigating to the module I'm getting this 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
I've removed BrowserModule
and CommonModule
from my project completely! but still getting this error. Maybe some other module still use it (@angular/material
?).
Any suggestions?