The
border-borderclass is not recognized. If
border-border
is a custom class, ensure it is defined within a
@layer directive.
globals.css
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
* {
@apply border-border; //error
}
body {
@apply bg-background text-foreground;
}
}
I am puzzled by how this issue arose. It occurred in a React - Next app using Tailwind CSS and TypeScript, possibly related to the configuration in tailwind.config or globals.css files.