windicss / nuxt-windicss

🍃 Windi CSS for Nuxt ⚡
331 stars 24 forks source link

Nuxt-Windicss + Nuxt 3 + DaisyUI plugin not working #147

Open Destaq opened 2 years ago

Destaq commented 2 years ago

Describe the bug After trying to use the DaisyUI component library with Nuxt 3 + Nuxt-WindiCSS, I get the following error:

Nuxt CLI v3.0.0-27333388.c824905                                                                                                                     12:40:02
                                                                                                                                                     12:40:02
  > Local:    http://localhost:3000/ 
  > Network:  http://10.0.0.4:3000/

                                                                                                                                                     12:40:03
🌼 daisyUI components 1.17.1  https://github.com/saadeghi/daisyui                                                                                    12:40:03

 ERROR  [unhandledRejection] Maximum call stack size exceeded                                                                                        12:40:03

  at guessClassName (node_modules/windicss/lib/index.mjs:364:24)
  at node_modules/windicss/lib/index.mjs:367:67
  at Array.map (<anonymous>)
  at guessClassName (node_modules/windicss/lib/index.mjs:367:41)
  at node_modules/windicss/lib/index.mjs:367:67
  at Array.map (<anonymous>)
  at guessClassName (node_modules/windicss/lib/index.mjs:367:41)
  at node_modules/windicss/lib/index.mjs:367:67
  at Array.map (<anonymous>)
  at guessClassName (node_modules/windicss/lib/index.mjs:367:41)

ℹ nuxt-windicss v2.1.1 running with config: ./windi.config.js.                                                                         nuxt-windicss 12:40:03

 ERROR  Cannot start nuxt:  Maximum call stack size exceeded                                                                                         12:40:03

  at guessClassName (node_modules/windicss/lib/index.mjs:364:24)
  at node_modules/windicss/lib/index.mjs:367:67
  at Array.map (<anonymous>)
  at guessClassName (node_modules/windicss/lib/index.mjs:367:41)
  at node_modules/windicss/lib/index.mjs:367:67
  at Array.map (<anonymous>)
  at guessClassName (node_modules/windicss/lib/index.mjs:367:41)
  at node_modules/windicss/lib/index.mjs:367:67
  at Array.map (<anonymous>)
  at guessClassName (node_modules/windicss/lib/index.mjs:367:41)

The project works well prior to installing the component library.

To Reproduce Steps to reproduce the behavior:

  1. Clone repository here
  2. Uncomment the commented out windi.config.js that transforms the plugin.
  3. See error

Expected behavior DaisyUI to work well with Nuxt-WindiCSS, being able to be imported into WindiCSS.

uyamazak commented 2 years ago

I got the same error in the same environment (Nuxt-Windicss + Nuxt 3 + DaisyUI).

itshizhan commented 2 years ago

upgrade nuxt-windicss v2.2.5 is ok