Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BrowserAnimationModule has already been loaded #30

Open
ElPootch opened this issue Jul 13, 2021 · 0 comments
Open

BrowserAnimationModule has already been loaded #30

ElPootch opened this issue Jul 13, 2021 · 0 comments

Comments

@ElPootch
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant