Lazy Loading BrowserModule has already been loaded
Import BrowserModule,
BrowserAnimationsModule
, HttpModule
or HttpClientModule
only once, preferably in your root module.
I also got the same error and finally, after little bit struggle, I was able to fix it.
Import these mentioned modules only once(in app-module only):
BrowserModule,BrowserAnimationsModule,LazyLoadImageModule (if using it),CarouselModule (if using it),InfiniteScrollModule (if using it),HttpModule ( if using it)
I had the same problem and Jota.Toledo gave the correct answer and I want only extend that: please check in shared module imports any modules that related with
@angular/platform-browser/animations
and move those modules into app.module.ts