lukasz-galka / ngx-gallery

Angular image gallery plugin
https://lukasz-galka.github.io/ngx-gallery-demo/
MIT License
436 stars 171 forks source link

Error: BrowserModule has already been loaded. #339

Open JimKlein325 opened 2 years ago

JimKlein325 commented 2 years ago

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 commented 2 years ago

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

sibaram-sahu commented 2 years ago

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