ocluf / justship

https://justship.today
277 stars 16 forks source link

embla-carousel-svelte@8.1.5 conflicts with svelte@5.0.0-next.158 #5

Open rajivpoddar opened 1 week ago

rajivpoddar commented 1 week ago
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: justship2@0.0.1
npm error Found: svelte@5.0.0-next.158
npm error node_modules/svelte
npm error   dev svelte@"^5.0.0-next.1" from the root project
npm error
npm error Could not resolve dependency:
npm error peer svelte@"^3.49.0 || ^4.0.0" from embla-carousel-svelte@8.1.5
npm error node_modules/embla-carousel-svelte
npm error   embla-carousel-svelte@"^8.1.3" 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 /Users/rajiv/.npm/_logs/2024-06-19T05_58_01_485Z-eresolve-report.txt
npm error A complete log of this run can be found in: /Users/rajiv/.npm/_logs/2024-06-19T05_58_01_485Z-debug-0.log
ocluf commented 1 week ago

Hey rajiv,

Yes it seems the embla-carousel package doesn't officially support svelte 5 yet even though it seems to work fine. I normally use pnpm where you'll just get a warning.

You can either:

Will leave this issue open with that solution until official svelte 5 support drops for the package.