Please remove also BrowserAnimationModule import from the library, I use the lazy loading module as well as for the issue #28
and I can't remove BrowserAnimationModule.
Import BrowserModule, BrowserAnimationsModule, HttpModule or HttpClientModule only once, preferably in your root module.
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.
ISSUE
Please remove also
BrowserAnimationModule
import from the library, I use the lazy loading module as well as for the issue #28 and I can't remove BrowserAnimationModule.This stackoverflow thread is a typical use case. https://stackoverflow.com/questions/45975675/lazy-loading-browsermodule-has-already-been-loaded
Import
BrowserModule
,BrowserAnimationsModule
,HttpModule
orHttpClientModule
only once, preferably in your root module.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.