Skip to content

[v4]: Full of :not(#\#) pseudo-classes generate in selectors and some styles missing/incorrect in dev mode #18153

Answered by hta218
hta218 asked this question in Help
Discussion options

You must be logged in to vote

Update:

So the issue was caused by the postcss-preset-env plugin (Thanks @wongjn for the hint!).

What I did to fix it:

  • Removed postcss-preset-env from the project
  • Deleted the custom postcss.config.js file
  • Uninstalled any unused PostCSS-related dependencies
  • Let Tailwind work with the setup via the Vite plugin only

Now everything works as expected in both dev and production. Hope this helps anyone running into the same problem!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

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