Skip to content

Tailwind CLI Error: Cannot apply unknown utility class [Tailwind class] #17539

Closed Answered by wongjn
cbmtrx asked this question in Help
Discussion options

You must be logged in to vote

Replace the v3 @tailwind directives with the v4 equivalent:

-@tailwind base;
-@tailwind components;
-@tailwind utilities;
+@import "tailwindcss";

 body {

As an aside, Adam Wathan (creator of Tailwind) does seem to advocate avoiding @apply:

Replies: 2 comments 14 replies

Comment options

You must be logged in to vote
2 replies
@cbmtrx
Comment options

@wongjn
Comment options

Answer selected by cbmtrx
Comment options

You must be logged in to vote
12 replies
@cbmtrx
Comment options

@wongjn
Comment options

@cbmtrx
Comment options

@wongjn
Comment options

@cbmtrx
Comment options

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