You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I know what the issue is from commenting out these two lines in the app.css file:
@layer base {
* {
/* @apply border-border; */
}
body {
/* @apply bg-background text-foreground; */
}
}
The issue is that when I uncomment these lines, I get: [plugin:@tailwindcss/vite:generate:serve] Cannot apply unknown utility class: border-border. The page loaded when I commented the lines, but the button did not work. Is there a way to fix the button or the two commented lines?
edit:
I found these two lines giving errors from bits-ui not having a .Props or .Events field. I tried replacing them with RootProps, and Root, but that did not fix anything
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I think I know what the issue is from commenting out these two lines in the app.css file:
The issue is that when I uncomment these lines, I get:
[plugin:@tailwindcss/vite:generate:serve] Cannot apply unknown utility class: border-border
. The page loaded when I commented the lines, but the button did not work. Is there a way to fix the button or the two commented lines?For reference here is my code:
edit:
I found these two lines giving errors from bits-ui not having a .Props or .Events field. I tried replacing them with RootProps, and Root, but that did not fix anything
Also, adding hover:bg-black to the class name also works. I think it might be just hard to see with the background color I chose.
Beta Was this translation helpful? Give feedback.
All reactions