I am using Vite and react, and getting this issue while trying to use tailwind #15950
Replies: 1 comment 1 reply
-
Issue resolved : uninstall tailwindcss postcss autoprefixer |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Error" [plugin:vite:css] [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. "I have tried installing "yarn add -D @tailwindcss/postcss"
Update the postcss.config.js with:
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
and updated tailwind.config.js:
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
};
**
Beta Was this translation helpful? Give feedback.
All reactions