saadeghi / daisyui

🌼 🌼 🌼 🌼 🌼  The most popular, free and open-source Tailwind CSS component library
https://daisyui.com
MIT License
33.41k stars 1.27k forks source link

not working with windi css #178

Closed ctwhome closed 3 years ago

ctwhome commented 3 years ago

hi!

I couldn't make it work with windicss and 'nuxt-windicss'

Sometimes also complains about postcss

ctwhome commented 3 years ago

related issue https://github.com/windicss/nuxt-windicss-module/issues/113

saadeghi commented 3 years ago

@ctwhome Can you please make an example repo so I can reproduce this?
I'm not sure but this looks like a problem from Windi CSS, not daisyUI.
daisyUI is essentially just a collection of class names 🤷‍♂️

ctwhome commented 3 years ago

yes, thank you for taking a look at it 

https://github.com/ctwhome/windi-daisyui

It seems that some daisyui styles are not being applied either

saadeghi commented 3 years ago

@ctwhome Purge list is not targetting the .vue files: https://github.com/ctwhome/windi-daisyui/blob/master/windi.config.js
I didn't get any errors but btn had no style.
So I made this change and it worked:

const { transform } = require('windicss/helpers')

module.exports = {
  extract: {
-  include: ['./*.html'],
+  include: ['./pages/*.vue'],
  },
  plugins: [transform('daisyui')],
}
itshizhan commented 2 years ago

🌼 daisyUI components 1.19.0 https://github.com/saadeghi/daisyui

ERROR [unhandledRejection] Maximum call stack size exceeded

at String.trim () at splitSelectors (/D:/dev/vocabpark_com/node_modules/windicss/lib/index.mjs:361:25) at guessClassName /D:/dev/vocabpark_com/node_modules/windicss/lib/index.mjs:367:16) at /D:/dev/vocabpark_com/node_modules/windicss/lib/index.mjs:367:67 at Array.map () at guessClassName /D:/dev/vocabpark_com/node_modules/windicss/lib/index.mjs:367:41) a /D:/dev/vocabpark_com/node_modules/windicss/lib/index.mjs:367:67 at Array.map ()

saadeghi commented 2 years ago

@itshizhan https://github.com/saadeghi/daisyui/issues/349#issuecomment-999218977

itshizhan commented 2 years ago

upgrade nuxt-windicss v2.2.5 is ok