Conflict in Latest Tailwind CSS 4 with React 19 and PostCSS #16199
Unanswered
Minhajkarim
asked this question in
Help
Replies: 2 comments
-
Not part of the Tailwind team but here's my two cents. It seems like you're trying to go through the v3 process of integrating Tailwind. The |
Beta Was this translation helpful? Give feedback.
0 replies
-
Install below command npm install -D tailwindcss@3 It worked for me. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I encountered an issue while setting up Tailwind CSS 4 with React 19 and PostCSS. The latest version of Tailwind (4.0.3) is causing build failures due to a PostCSS plugin conflict. The error suggests that tailwindcss should not be used directly as a PostCSS plugin.
Steps to reproduce:
Expected behavior: Tailwind CSS should compile without PostCSS errors.
Actual behavior: The build fails with a PostCSS-related error, stating that tailwindcss needs a separate PostCSS package.
It would be great if the team could clarify whether this is an expected change in Tailwind 4 or if it's a bug. If there's a workaround, please provide guidance.
Thanks for your work on Tailwind!
Beta Was this translation helpful? Give feedback.
All reactions