Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update peer deps to Svelte4+ #4

Open
Shackless opened this issue Jan 6, 2024 · 2 comments
Open

Update peer deps to Svelte4+ #4

Shackless opened this issue Jan 6, 2024 · 2 comments

Comments

@Shackless
Copy link

Shackless commented Jan 6, 2024

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
Copy link

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.

@elunomas
Copy link

Is there any alternative to this component that works with Svelte 5?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants