Skip to content

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

Closed Answered by wongjn
cbmtrx asked this question in Help

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

You must be logged in to vote
2 replies
@cbmtrx

@wongjn

Answer selected by cbmtrx

You must be logged in to vote
12 replies
@cbmtrx

@wongjn

@cbmtrx

@wongjn

@cbmtrx

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