You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When installing the latest version of prettier-plugin-svelte with the latest version of Prettier (3.0.0), npm throws an error due to the peerDependencies of prettier in the package.json file. The peerDependencies are currently specified as ^1.16.4 || ^2.0.0, which doesn't cover Prettier 3.0.0.
To Reproduce
Steps to reproduce the behavior:
Use a project with the latest version of prettier (3.0.0).
Install prettier-plugin-svelte version 2.10.1.
Run npm i to install the dependencies.
See error:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/prettier
npm ERR! dev prettier@"^3.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer prettier@"^1.16.4 || ^2.0.0" from [email protected]
npm ERR! node_modules/prettier-plugin-svelte
npm ERR! dev prettier-plugin-svelte@"^2.10.1" 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! /home/anna/.npm/_logs/2023-07-10T05_05_59_696Z-eresolve-report.txt
Expected behavior prettier-plugin-svelte should install without errors when the latest version of Prettier is used.
Suggested Solution
It might be sufficient to update the peerDependencies to include ^3.0.0 for prettier. However, I'm not sure if this is as simple as changing the version number in peerDependencies or if additional testing with Prettier 3.0.0 is needed to ensure compatibility.
Thank you for your attention to this matter!
The text was updated successfully, but these errors were encountered:
This plugin is incompatible with Prettier 3 for now because of the breaking changes around the plugin interface, so the the information in peerDeps is actually correct. 🙂
Describe the bug
When installing the latest version of
prettier-plugin-svelte
with the latest version of Prettier (3.0.0), npm throws an error due to thepeerDependencies
ofprettier
in the package.json file. ThepeerDependencies
are currently specified as^1.16.4 || ^2.0.0
, which doesn't cover Prettier3.0.0
.To Reproduce
Steps to reproduce the behavior:
prettier
(3.0.0).prettier-plugin-svelte
version 2.10.1.npm i
to install the dependencies.Expected behavior
prettier-plugin-svelte
should install without errors when the latest version of Prettier is used.Suggested Solution
It might be sufficient to update the
peerDependencies
to include^3.0.0
forprettier
. However, I'm not sure if this is as simple as changing the version number inpeerDependencies
or if additional testing with Prettier 3.0.0 is needed to ensure compatibility.Thank you for your attention to this matter!
The text was updated successfully, but these errors were encountered: