saadeghi / daisyui

๐ŸŒผ ๐ŸŒผ ๐ŸŒผ ๐ŸŒผ ๐ŸŒผ โ€ƒThe most popular, free and open-source Tailwind CSS component library
https://daisyui.com
MIT License
34.14k stars 1.3k forks source link

bug: [WARNING] Unexpected "*" when building. #3055

Closed RomkaLTU closed 5 months ago

RomkaLTU commented 6 months ago

What version of daisyUI are you using?

v4.11.1

Which browsers are you seeing the problem on?

All browsers

Describe your issue

Getting warnings when building:

[WARNING] Unexpected "*" [css-syntax-error] [WARNING] Unexpected "li" [css-syntax-error]

CleanShot 2024-05-25 at 22 11 44

Using Laravel, TailwindCSS, Livewire.

"daisyui": "^4.11.1" "vite": "^5.2.11" "laravel-vite-plugin": "^1.0.4" "postcss": "^8.4.38" "tailwindcss": "^3.4.3"

I beleave this is somehow related to dark mode selectors. Can't provide reproduction URL at the moment.

github-actions[bot] commented 6 months ago

Thank you @RomkaLTU for reporting issues. It helps daisyUI a lot ๐Ÿ’š
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.

saadeghi commented 6 months ago

How are you using dark class name?
FYI, dark class name is not from daisyUI and you don't need it anyway if you use daisyUI color names.

RomkaLTU commented 5 months ago

I'm not actually use it, I just included 2 components into my project (no customizations), button and accordion that's it.

saadeghi commented 5 months ago

.dark class name does not exist anywhere in daisyUI so I assume the code you're getting error about is coming from another source.

Feel free to continue the conversation. I'm closing this issue since the issue is not from daisyUI.

LucVK commented 5 months ago

I get the same errors when building a custom theme for filamentphp (laravel/livewire). When removing the daisyui plugin from the tailwind config, the error messages disappear.