PostCSS Error in Fresh Tailwind CSS v4 + Vite + ShadCN Project #17112
Replies: 4 comments
-
What version of tailwind are you using, what error message are you getting, and does it work if you use 4.0.11? Having some issues similar issues with nuxt. Currently I'm getting this error:
However earlier i was getting errors relating to postcss. |
Beta Was this translation helpful? Give feedback.
-
my exact error message was
"tailwindcss": "^4.0.12", |
Beta Was this translation helpful? Give feedback.
-
I'm also hitting this 😢 . Using a NextJS project Seems to specifically break on 4.0.14. 4.0.13 and below works fine. |
Beta Was this translation helpful? Give feedback.
-
I nuked the |
Beta Was this translation helpful? Give feedback.
-
I set up a fresh project using Tailwind CSS v4 with Vite and ShadCN. Initially, I used @tailwindcss/vite as a Vite plugin instead of PostCSS. Everything worked fine yesterday, but now I’m getting a PostCSS error, despite not having a postcss.config.js file in my project.
Here’s what I have tried so far:
Key Questions:
Does ShadCN require a specific PostCSS setup?
Why is this issue occurring in a fresh Tailwind CSS v4 project?
How can I resolve this error?
Beta Was this translation helpful? Give feedback.
All reactions