-
Notifications
You must be signed in to change notification settings - Fork 400
Closed
Description
I understand that this issue may be closed if it should be filed in another category
- I understand
My issue
When creating a sveltekit project using svelte 5, installing @uploadthing/svelte fails due to it requiring svelte 4.
When I used --force to install the package it worked fine in my testing.
Steps to reproduce:
npm create svelte@latest my-app
- Skeleton project
- TS
- additional options Svelte 5 preview
cd my-app
npm install uploadthing @uploadthing/svelte
Example error:
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @uploadthing/[email protected]
npm error Found: [email protected]
npm error node_modules/svelte
npm error svelte@"^5.0.0-next.254" from the root project
npm error peer svelte@"^4.0.0 || ^5.0.0-next.0" from @sveltejs/[email protected]
npm error node_modules/@sveltejs/kit
npm error dev @sveltejs/kit@"^2.0.0" from the root project
npm error peer @sveltejs/kit@"^2.0.0" from @sveltejs/[email protected]
npm error node_modules/@sveltejs/adapter-auto
npm error dev @sveltejs/adapter-auto@"^3.0.0" from the root project
npm error 1 more (sveltekit-superforms)
npm error 10 more (@sveltejs/vite-plugin-svelte, ...)
npm error
npm error Could not resolve dependency:
npm error peer svelte@"^4.0.0" from @uploadthing/[email protected]
npm error node_modules/@uploadthing/svelte
npm error @uploadthing/svelte@"^7.0.2" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/svelte
npm error peer svelte@"^4.0.0" from @uploadthing/[email protected]
npm error node_modules/@uploadthing/svelte
npm error @uploadthing/svelte@"^7.0.2" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error C:\Users\*redacted*\AppData\Local\npm-cache\_logs\2024-09-19T20_16_44_933Z-eresolve-report.txt
npm error A complete log of this run can be found in: C:\Users\*redacted*\AppData\Local\npm-cache\_logs\2024-09-19T20_16_44_933Z-debug-0.log
simonsarris
Metadata
Metadata
Assignees
Labels
No labels