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

version 5.x does not work with svelte 5 #336

Open
1 task done
werner-drklein opened this issue Dec 11, 2024 · 0 comments
Open
1 task done

version 5.x does not work with svelte 5 #336

werner-drklein opened this issue Dec 11, 2024 · 0 comments

Comments

@werner-drklein
Copy link
Contributor

werner-drklein commented Dec 11, 2024

Describe the bug

The current version has a peerDependency from svelte 4.x. So you can't install it with svelte 5.x. Can you add support for svelte 5?

To Reproduce

Create a svelte 5 project

npx sv create

add prettier and prettier-plugin-svelte

npm i -D prettier prettier-plugin-svelte

install latest prettier-plugin-sort-imports

npm i -D @trivago/prettier-plugin-sort-imports@latest

Expected behavior

latest @trivago/prettier-plugin-sort-imports is installed

Error log

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/svelte
npm error   dev svelte@"^5.0.0" from the root project
npm error   peer svelte@"^3.2.0 || ^4.0.0-next.0 || ^5.0.0-next.0" from [email protected]
npm error   node_modules/prettier-plugin-svelte
npm error     dev prettier-plugin-svelte@"^3.3.2" from the root project
npm error     peerOptional prettier-plugin-svelte@"3.x" from @trivago/[email protected]
npm error     node_modules/@trivago/prettier-plugin-sort-imports
npm error       @trivago/prettier-plugin-sort-imports@"5.2.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peerOptional svelte@"4.x" from @trivago/[email protected]
npm error node_modules/@trivago/prettier-plugin-sort-imports
npm error   @trivago/prettier-plugin-sort-imports@"5.2.0" from the root project
npm error

Contribute to @trivago/prettier-plugin-sort-imports

  • I'm willing to fix this bug 🥇
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant