milantenk / ngx-interactive-paycard

Interactive Angular payment card library.
Other
79 stars 14 forks source link

BrowserAnimationModule has already been loaded #30

Open ElPootch opened 3 years ago

ElPootch commented 3 years ago

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 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.