Fix Conflict in Tailwind CSS 4 with React 19 and PostCSS #16201
Replies: 5 comments 7 replies
-
Heya! The error message is right here and you'll need to install |
Beta Was this translation helpful? Give feedback.
-
I am having the same issue |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I have solution ...
…On Fri, Feb 7, 2025 at 10:59 PM Korol-b ***@***.***> wrote:
so just found solution that worked for me and i stopped getting the same
error.
TailwindCSS v3
The installation of TailwindCSS v3 and v4 is different. You were expecting
the v3 installation, but v4 is the new latest version. For v3 installation,
use:
npm install -D ***@***.***
Once this is done, the other steps remain unchanged:
—
Reply to this email directly, view it on GitHub
<#16201 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2WPOM5R5NQXFCTLRDVPX532OTX7ZAVCNFSM6AAAAABWNZ3W7SVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMBZG4ZDQOA>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
--
*Best Regards, *
*M. Jamshaid Aziz*
*+92 344 3044 959*
|
Beta Was this translation helpful? Give feedback.
-
Run: |
Beta Was this translation helpful? Give feedback.
-
Dear Tailwind CSS Team,
I am experiencing a build failure when using Tailwind CSS 4 with React 19 and PostCSS. The error message indicates that
tailwindcss
should not be used directly as a PostCSS plugin and suggests installing@tailwindcss/postcss
. However, no such package exists, and following previous PostCSS setup instructions does not resolve the issue.Steps to Reproduce:
npx tailwindcss init -p
.npm start
).Expected Behavior:
Tailwind CSS should compile without errors and work seamlessly with PostCSS.
Actual Behavior:
The build fails with a PostCSS-related error, preventing the project from running.
Could you please look into this issue and provide a fix or guidance on how to resolve it? Many developers are encountering this problem, and a resolution would be greatly appreciated.
Thank you for your amazing work on Tailwind! 🚀
Best regards,
Minhaj
Beta Was this translation helpful? Give feedback.
All reactions