Closed Vikas4790 closed 2 years ago
This is the same in angular 9, rolling back version to version 1.2.3 fixed for me
But my application is on Angular13 now and ngx-gallery
's version 2.0.0
is compatible with Angular13.
sure, was not saying this is not an issue, was just adding context. For me, it was 1.2.4 that broke my app.
Same issue using lazy modules (v2.0.0). Works fine using v1.2.3.
any update ?
I had the same problem... I had to go back to the previous version...
@kolkov can u help? I went back to angular 12
@lukasmatta @Simbaclaws
I did the test here.. can you generate a new version without the IMPORT BrowserAnimationsModule ?
Please.. confirm pull request
with version 2.0.1 this problem has been fixed. thanks.
This issue is resolved after the update 2.0.1. Marking it as closed. Thanks for the update @andrejm7 @kolkov .
Using
ngx-gallery
works fine in a non lazy module, but throwsError: 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.
when trying to access the component in a lazy module. Is anyone else facing the same issue?It can be easily reproduced in a new angular13 project with
"@kolkov/ngx-gallery": "^2.0.0"
package version. Sample code of lazy loaded module -And then loading
Module2Module
lazily in app module like below throws the error when navigating tohttp://localhost:4200/component2
-I feel this is related to the
BrowserAnimationsModule
getting imported alongsideNgxGalleryModule
when we addNgxGalleryModule
to the imports: [...] ofModule2Module
. Since main app.module has already an import forBrowserModule
so angular compiler throws up the error message stating thatBrowserModule has already been loaded
. Though I am not sure how to fix this if this is the issue.