-
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
![Screenshot 2023-10-23 at 08 42 29](https://private-user-images.githubusercontent.com/9379317/277250046-d7fdbd2a-8bbd-4764-9378-c2ac73eaf5a5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4ODAyNjksIm5iZiI6MTcyMzg3OTk2OSwicGF0aCI6Ii85Mzc5MzE3LzI3NzI1MDA0Ni1kN2ZkYmQyYS04YmJkLTQ3NjQtOTM3OC1jMmFjNzNlYWY1YTUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTdUMDczMjQ5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YWI2YTljMjI2ZWJmYTVmOThiZmU3ZjBiNjIxYjI1NTIwYmVlYWExZTdhOGM5ZTg1NjNiM2VhYjkzNzdlZWMxOSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.ILF1Yd_RTvsmQvNDXTw1T8AXuFU5MNlNItkT0u-VktE)
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: