-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
@Tailwind Base no longer resolving in imported stylesheets #13732
Comments
This has been killing me for the last ~20h. @Sarenor tip of the hat to you for putting in a detailed issue! For anyone else who finds this, |
I meet the same problem with postcss 8.4.25 and vite 4.4.1.
|
This seems to be affected by #8400. Reverting that PR, makes the reproduction work. |
Thanks for providing a quick fix! It's a bit of a showstopper for us with every newly set up project via |
@Sarenor the fix has been released in vite@4.4.2 |
Thank you very much! And sorry for not seeing the already released version... |
Describe the bug
I'm one of the people helping out with the development & maintenance of Skeleton for Svelte and starting with 4.4.0 of Vite, our way of handling CSS for our users doesn't work as expected anymore.
To make sure the order of imports & initializiation of tailwind layers is correct, we handle it in one of our CSS-Files (skeleton.css which imports tailwind.css which contains the directives) and the user only needs to import
skeleton.css
.That approach worked perfectly up until Vite 4.3.9 (Downgrade the Vite version in the reproduction to see how it should actually look or at least used to look).
Now it gives the following error:
Reproduction
https://github.com/Sarenor/vite-tailwind-reproduction
Steps to reproduce
Run
(p)npm i
, followed by(p)npm run dev
, followed by opening the URL displayed in the console, the error should then appear in the console.System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: