I am trying to implement lazy loading but getting error as following **
ERROR Error: Uncaught (in promise): Error: BrowserModule has already been loaded.
In my case I had shared module which was importing BrowserAnimationModule. I was importing shared module in my root module. to solve this error remove all imports of BrowserAnimationModule from all modules and add it to root module.
imports: [
AppRoutingModule,
SharedModule,
BrowserAnimationsModule
],