saabi / svelte-image-input

A Svelte component for loading, scaling and adjusting profile pictures.
ISC License
7 stars 3 forks source link

Update peer deps to Svelte4+ #4

Open Shackless opened 6 months ago

Shackless commented 6 months ago

Installing inside a Svelte 4 project gives error:

npm install svelte-image-input

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: my-package@1.0.0
npm ERR! Found: svelte@4.2.8
npm ERR! node_modules/svelte
npm ERR!   dev svelte@"^4.2.8" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer svelte@"^3.54.0" from svelte-image-input@0.1.3
npm ERR! node_modules/svelte-image-input
npm ERR!   svelte-image-input@"*" 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.
npm ERR! 
npm ERR! 
npm ERR! For a full report see:
npm ERR! /Users/xxx/.npm/_logs/2024-01-06T14_24_23_444Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /Users/xxx/.npm/_logs/2024-01-06T14_24_23_444Z-debug-0.log
spaceofnova commented 4 months ago

I had the same issue so I tested it via --force with npm and the library still works.

I'm currently trying to do a pull request for this exact issue.