kolkov / ngx-gallery

A simple responsive native gallery component for Angular 8+.

Home Page:https://ngx-gallery.kolkov.ru/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Updating to Angular 14 - Peer dependencies cannot resolve

german-e-mas opened this issue · comments

I'm trying to upgrade my app to Angular 14 and found the following issue when installing this library.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: my-app@1.2.3
npm ERR! Found: @angular/animations@14.0.1
npm ERR! node_modules/@angular/animations
npm ERR!   @angular/animations@"^14.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/animations@">=13.0.0 <14" from @kolkov/ngx-gallery@2.0.1
npm ERR! node_modules/@kolkov/ngx-gallery
npm ERR!   @kolkov/ngx-gallery@"*" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Did you find the solution for this ?

Solved. Replaced with the following library.
https://swiperjs.com

Solved. Replaced with the following library. https://swiperjs.com

That's a nice alternative. Thank you!

is an update for Angular 14 support planned for this lib?

commented

I know it is not the best solution, however, I have just used "--legacy-peer-deps".