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

issue with lazy loaded module in angular 13 #392

Closed
cavone-leonardo opened this issue Mar 3, 2022 · 4 comments · Fixed by #396
Closed

issue with lazy loaded module in angular 13 #392

cavone-leonardo opened this issue Mar 3, 2022 · 4 comments · Fixed by #396

Comments

@cavone-leonardo
Copy link

cavone-leonardo commented Mar 3, 2022

Use Case

I reproduced the problem in this example:

Description

Using angular2-notifications version 12 in a lazy loaded module, you get the following error:

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

Angular v. 13.2.5

image

@Nomis87
Copy link

Nomis87 commented Apr 6, 2022

Same for me with Angular 12

@wwjhu
Copy link
Contributor

wwjhu commented May 31, 2022

Any chance you can create a 12.0.1 release with this fix any time soon?

@maychan111
Copy link

Same issue here.

@flauc can we have a 12.0.1 release please?

@wwjhu how are you getting around this issue with no 12.0.1?

@wwjhu
Copy link
Contributor

wwjhu commented Nov 7, 2022

@wwjhu how are you getting around this issue with no 12.0.1?

I created a private fork that I hope to get rid of once a release is here.

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

Successfully merging a pull request may close this issue.

4 participants