Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Destaq opened this issue Dec 21, 2021 · 2 comments
Open

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

Destaq opened this issue Dec 21, 2021 · 2 comments

Comments

@Destaq
Copy link

Destaq commented Dec 21, 2021

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
Copy link

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

@itshizhan
Copy link

upgrade nuxt-windicss v2.2.5 is ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants