[v4] stuck at "[postcss] It looks like you're trying to use tailwindcss
directly as a PostCSS plugin. The PostCSS plugin has moved to a separate package, so to continue using Tailwind CSS with PostCSS you'll need to install @tailwindcss/postcss
and update your PostCSS configuration."
#15764
Replies: 8 comments 14 replies
-
Please consider providing a project that reproduces the unexpected behavior so we can help debug for you. |
Beta Was this translation helpful? Give feedback.
-
Hey, I also faced the same issue. Try completely deleting the postcss.config file and try again. Hope it helps. |
Beta Was this translation helpful? Give feedback.
-
I ran into the same issue when upgrading to Tailwind CSS v4. The problem appears if you're still trying to use How I fixed it:
“tailwind-merge”: “^3.0.1”,
[postcss] It looks like you're trying to use tailwindcss directly as a PostCSS plugin. The PostCSS plugin has moved to a separate package... // postcss.config.js
module.exports = {
plugins: [
require('@tailwindcss/postcss'),
// other plugins...
],
}```
|
Beta Was this translation helpful? Give feedback.
-
Hello everyone, I encountered the same issue yesterday while working with Ionic Angular 7.2.0, and I found a solution today. Here’s what worked for me: In a new project, add ngx-tailwind:
Install Tailwind CSS and dependencies:
Initialize Tailwind CSS:
Install the Prettier plugin for Tailwind (optional but recommended for better formatting):
Add the following to your global.scss file:
|
Beta Was this translation helpful? Give feedback.
-
I fixed this issue: /** @type {import('postcss-load-config').Config} */ export default config; |
Beta Was this translation helpful? Give feedback.
-
This is due to wrong version usage of Tailwind, you can either: Stick with Tailwind v3 → Uses traditional setup with postcss.config.js(https://v3.tailwindcss.com/docs/guides/vite) Use the latest Tailwind v4 → Simplified setup, no need for PostCSS, Autoprefixer, or additional config fileshttps://tailwindcss.com/docs/installation/using-vite if you're stuck with it - just remove package.lock.json file, with clearing the node modules, package.json file's contents where you must have imported postcss and autprefixer(delete those) - and start from fresh following either of the docs |
Beta Was this translation helpful? Give feedback.
-
Lei un monton de Tuturiales y lo unico qye me fun ciono fue esto : sh |
Beta Was this translation helpful? Give feedback.
-
Try installing tailwindcss v3.. it worked for me |
Beta Was this translation helpful? Give feedback.
-
I have done exactly these steps and same result
Beta Was this translation helpful? Give feedback.
All reactions