Skip to content
Discussion options

You must be logged in to vote

I was on this issue for about a day. It only started when i upgraded to tailwindcss v4(.1). The issues was my postcss.config.mjs file. I had this:

import tailwindcss from "@tailwindcss/postcss";

/** @type {import('postcss-load-config').Config} */
const config = {
	plugins: {
		tailwindcss: tailwindcss(), // 👈 call the plugin function
	},
};

export default config;

which was incorrect, instead of this:

/** @type {import('tailwindcss').Config} */
export default {
  plugins: {
    '@tailwindcss/postcss': {},
  },
}

as found in the docs. That fixed this bug for me.
After this i just followed the tailwind v3 to v4 upgrade guide and everything worked as expected. Hope this helps you

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Prachiijainn
Comment options

Answer selected by lancejpollard
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
5 participants