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

Error: BrowserModule has already been loaded. #166

Closed
Rodrigo54 opened this issue Jul 20, 2017 · 2 comments
Closed

Error: BrowserModule has already been loaded. #166

Rodrigo54 opened this issue Jul 20, 2017 · 2 comments
Labels

Comments

@Rodrigo54
Copy link

I updated to the new version 1.5.0
And I'm getting this error

Error: BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor a lazy loaded module, import CommonModule instead.

Capturar.jpg

I'm using the BrowserAnimationsModule in the AppModule to animate my routes, I also have a SharedModule where I export the MaterializeModule. It would look something like this angular/angular#15829

In the previous version everything worked

Versions

@angular/cli: 1.2.2
node: 8.1.3
os: win32 x64
@angular/animations: 4.3.1
@angular/common: 4.3.1
@angular/compiler: 4.3.1
@angular/core: 4.3.1
@angular/forms: 4.3.1
@angular/http: 4.3.1
@angular/platform-browser: 4.3.1
@angular/platform-browser-dynamic: 4.3.1
@angular/platform-server: 4.3.1
@angular/router: 4.3.1
@angular/cli: 1.2.2
@angular/compiler-cli: 4.3.1
@angular/language-service: 4.3.1

Thank you for the excellent abstraction of the materialize css that you have been carrying out

@scote
Copy link
Contributor

scote commented Jul 21, 2017

We have the same error on our internal application. So, I am investigating on it.

@scote
Copy link
Contributor

scote commented Jul 21, 2017

You can update your ng2-materialize version to 1.5.1 in your application and follow the steps in release note: https://github.com/sherweb/ng2-materialize/releases/tag/v1.5.1

This should fix the error.

@scote scote closed this as completed Jul 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants