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
When I try to format a svelte file with prettier and this plugin using format on save with vscode the entire file breaks. When I try to run prettier with the --write flag it reports a parsing error. If I format the file using the vscode extension for svelte nothing breaks.
"devDependencies": {
"prettier": "^3.3.3",
"prettier-plugin-svelte": "^3.2.7",
"prettier-plugin-tailwindcss": "^0.6.8"// I am using svelte 4// svelte vs code plugin version is v109.1.0
}
Also, this is not an issue with the tailwind plugin because I have tried to remove it and it still happens. And Its also not an issue with the properties not being quoted since I removed the quotes thinking that was the cause and the error persists
If I remove prettier-plugin-tailwindcss from the list of plugins in your repro, the error is no longer reproducible. So to me this looks like prettier-plugin-tailwindcss is the culprit.
You said that it's reproducible even if you remove that plugin; if that's the case please provide a file where that happens even with that plugin removed.
When I try to format a svelte file with prettier and this plugin using format on save with vscode the entire file breaks. When I try to run prettier with the
--write
flag it reports a parsing error. If I format the file using the vscode extension for svelte nothing breaks.Specifically what breaks are the arrow functions and a few other things. I have created a minimal repository reproducing the issues -> https://github.com/oudwin-old/prettier-plugin-svelte-error.
Other relevant data
versions
prettier.config.js
The text was updated successfully, but these errors were encountered: