Comments (4)
Same here
from tailwind-raw-reorder.
Samesies
from tailwind-raw-reorder.
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.
from tailwind-raw-reorder.
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.
from tailwind-raw-reorder.
Related Issues (10)
- Should Support Custom Directives E.G. border-l-[3px] HOT 2
- Add option to disable the notification "Tailwind config not found" HOT 2
- Error msg: Cannot find module @tailwindcss/typography HOT 2
- How to configure sorting order? HOT 3
- It does not work with *.css. HOT 3
- activationEvents must supports * instead of only .js HOT 1
- Doesn't respect classes inside single quotes? (in AlpineJS) HOT 4
- Sort Selection Command HOT 1
- Adding custom location for config? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tailwind-raw-reorder.