sveltejs / prettier-plugin-svelte

Format your svelte components using prettier.
MIT License
715 stars 95 forks source link

Not working with Prettier 3 #372

Closed w3bdesign closed 12 months ago

w3bdesign commented 12 months ago

This plugin does not work with Prettier 3

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: sveltekit-chatgpt@1.0.6
npm ERR! Found: prettier@3.0.0
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 prettier-plugin-svelte@2.10.1
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! C:\npm\cache\_logs\2023-07-05T13_58_26_005Z-eresolve-report.txt
w3bdesign commented 12 months ago

Related to https://github.com/sveltejs/prettier-plugin-svelte/pull/365

dummdidumm commented 12 months ago

Closing as duplicate of #372

cassepipe commented 12 months ago

Closing as duplicate of https://github.com/sveltejs/prettier-plugin-svelte/issues/372

It think you just created a circular dependancy :D

dummdidumm commented 12 months ago

Oh woops I meant #317