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

Open
JimKlein325 opened this issue Jul 1, 2022 · 2 comments
Open

Error: BrowserModule has already been loaded. #339

JimKlein325 opened this issue Jul 1, 2022 · 2 comments

Comments

@JimKlein325
Copy link

I get this error when I import NgxGalleryModule into a feature module:

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.

The problem seems to be this import in NgxGalleryModule:
import {HAMMER_GESTURE_CONFIG, HammerGestureConfig} from '@angular/platform-browser';

Is there a work around for this?

@sibaram-sahu
Copy link

Facing same problem. Any suggestion pls. Thank you in advance.

@sibaram-sahu
Copy link

@JimKlein325 Update your ngx-gallery package to 2.0.1 version it will fix the issue.

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

2 participants