-
Notifications
You must be signed in to change notification settings - Fork 3
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
no such file or directory, open '[...]/dist/css/preflight.css'
#4
Comments
Same here |
Samesies |
I'm looking into this. It appears that the issue described occurs when no local tailwind config can be found for the file. The extension is meant to use the default tailwind config in this case, but that is not happening as expected. I anticipate I'll have this figured out this week. If anyone else is encountering this issue that HAS a local tailwind config for the impacted file, please expand on you situation here. As a temporary work-around for those impacted, you can put a basic tailwind.config.js file at the base directory of your project. |
Here is the update. The extension was updated to version 3.1.0 today. This fixes the preflight not found exception. However, The extension requires a local tailwind.config file to function correctly and will show the user an error if none is found. This is so that the extension won't touch workspaces that are not using tailwind at all. I cannot imagine the frustration that would occur if a non-tailwind project suddenly had classes moving around because they accidently overlap with tailwind classes. This means that in the future if we add options for ordering custom / unknown classes (the current behavior is that custom classes are left in their current order) we won't accidently stomp all over someone's non-tailwind project because they flipped that switch globally. You can use a dummy config file and include it in your .gitignore if you're just looking for local functioning and don't want to include the tailwind config in your repo for some reason. I will leave this issue open for a few days in case people want to respond to how I went about this. If you have any feedback, I'd be glad to hear it. |
Hey! I would love to use your extension, since https://github.com/heybourn/headwind is completely unmaintained, but I'm encountering the following issue 😭
Let me know if you need anything else!
Describe the bug
When running the sort command (either through the command panel or by saving the file) I get the following error (also see screenshot)
To Reproduce
Steps to reproduce the behavior:
<div class="py-3 block"></div>
Expected behavior
Tailwind classes are sorted
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: