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
[BUG] Class sorting fails with Tailwind 3.2 #173
Comments
👋🏻 |
My apologies for bothering you during your holiday! I haven't needed to disable the rule, as it doesn't have any negative effect when left on—it just isn't triggered except by custom classes being anywhere but the beginning of the class list. (I can't use Prettier in my case, as I'm using your plugin for class sorting in PHP templates as part of a WordPress theme, and my understanding is that Prettier won't support that use case for the foreseeable future, if ever.) I'm comfortable waiting for a future release and updating then to reenable class sorting. Thanks again! |
I have the same issue, I was doing some manipulation with configuration and sorting started to work for a moment, but then it stopped again. Update: Looks like downgrading to 3.4.4 makes it work, but it works much slower in this case. Still is better to have it working even if it's slow and sorting is a bit different. |
Mine works in release version 3.5.2 |
I've been working on this, in the last few days but I'm struggling with some edge cases like when I'm using the typography plugin. Running the same simple code in prettier-plugin-tailwindcss internally generates 88 rules on which is based the ordering... UPDATE caused by a different version of a node_modules 😅 |
Happy to see your update regarding Thanks again for all your work on this! |
@gregsullivan , @vedmant , @boompikachu , @patrikholcak I just published a new beta version which should support Tailwind CSS up to 3.2.3 as well as fixed ordering for older Tailwind CSS version. Could you try it out via:
MR: #176 Thank you for your feedback |
Class names are now being sorted as expected—thanks very much for all of your work on this! |
Version 3.7.0 has been released and it should fix the issue
If the issue persists, please open a new ticket. Cheers. |
Upgrading to Tailwind 3.2 causes class sorting to no longer work:
To Reproduce
Upgrade to Tailwind 3.2
Expected behavior
Class names would continue to be sorted when using Tailwind 3.2.
Environment
eslint config file or live demo
If you are unable to trivially reproduce the problem, I would be happy to create a repository with a minimal reproduction of the bug.
Thanks for all of your work on this plugin!
The text was updated successfully, but these errors were encountered: