rails/tailwindcss-rails

@plugin "daisyui"; does not work

tbsvttr opened this issue · 2 comments

While things like @plugin '@tailwindcss/forms'; work @plugin "daisyui"; does not work with error Error: Can't resolve 'daisyui' in '/Users/username/Code/customer/project/app/assets/tailwind'

Hi @tbsvttr , have you installed daisyui as a npm package? eg npm i -D daisyui@beta, as I think daisyui v5 adds tailwindcss v4 support.

@tbsvttr As far as I can recall I tried to add daisyui via Importmaps and as a vendor dependency. I wanted to avoid Node (or other dependencies). Ultimately, I switched to https://github.com/rails/cssbundling-rails with bun and everything worked out.