kolkov / ngx-gallery

A simple responsive native gallery component for Angular 8+.
https://ngx-gallery.kolkov.ru/
MIT License
115 stars 56 forks source link

Updating to Angular 14 - Peer dependencies cannot resolve #99

Open german-e-mas opened 2 years ago

german-e-mas commented 2 years ago

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.
anandjaisy commented 1 year ago

Did you find the solution for this ?

nesterenes commented 1 year ago

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

german-e-mas commented 1 year ago

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

That's a nice alternative. Thank you!

eggars commented 1 year ago

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

EnverUsta commented 1 year ago

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