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?
BrowserAnimationsModulesomewhere? Angular Material itself does not include it in its modules. - ChrisYBrowserAnimationsModuleon my shared module. I'm importing the shared module to my lazy-loading module as well. - ranbuch