-
Notifications
You must be signed in to change notification settings - Fork 97
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
Snippets are not formatted #448
Comments
Oops, I didn't include the parser override in my |
I was experiencing this again and spent a bunch of time trying to track down what was going on. I've found that formatting fails if Perhaps it should be documented that the svelte plugin must be listed first? |
prettier-plugin-tailwindcss did document that the plugin should be the last one. https://github.com/tailwindlabs/prettier-plugin-tailwindcss#compatibility-with-other-prettier-plugins |
@jasonlyu123 didn't notice that! However, that makes this issue even more confusing. I can only get Svelte formatting to work when Eg: Works{
"plugins": [
"prettier-plugin-tailwindcss",
"prettier-plugin-svelte"
],
} Does not work{
"plugins": [
"prettier-plugin-svelte",
"prettier-plugin-tailwindcss"
],
} |
had the same problem |
I get the following error when I try to format a file containing a Svelte 5 snippet. I'm running the latest v3.2.5 of the plugin.
The text was updated successfully, but these errors were encountered: