-
Notifications
You must be signed in to change notification settings - Fork 31
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 BUG: prettier-plugin-tailwindcss doesn't work in .astro files #202
Comments
I am not sure, but it might be, that we are running into the same problem as the svelte plugin. This is a known issue with the tailwind plugin (or actually with the prettier architecture): tailwindlabs/prettier-plugin-tailwindcss#31 |
Hey, I made a PR to their plugin to get this working: tailwindlabs/prettier-plugin-tailwindcss#87 Hope we can get it merged! EDIT: PR got merged and it should be available in the coming days |
Update on this, the main branch of the Tailwind plugin support Astro nicely, however the Tailwind team would like to find a more consistent way to support different frameworks before releasing. As such, the release of it will be delayed More information here tailwindlabs/prettier-plugin-tailwindcss#87 (comment) |
This is sweet @Princesseuh! Can you post an update when the release is deployed? |
Yep, no worries! I'll post a message here and close this issue when they'll release it. You can also follow their PR here: tailwindlabs/prettier-plugin-tailwindcss#90 |
Hi everyone, we are still waiting on the Tailwind team. Adam recently posted an answer saying they would take a look in early November Hope we can get this working soon 馃 |
There's a beta version that can be used for now :) See the comment |
Tailwind has officially released a version of their plugin with Astro support. Make sure to follow this section on compatibility and everything should work! Please note that there's currently an issue in our VS Code extension that prevents plugins from being loaded correctly, it'll be fixed by withastro/language-tools#454 shortly. Thank you everyone! |
It doesn't work with |
|
Describe the Bug
prettier-plugin-tailwindcss doesn't work in
.astro
files.Steps to Reproduce
npm i -D prettier prettier-plugin-astro prettier-plugin-tailwindcss
.The text was updated successfully, but these errors were encountered: