vite + windicss + daisy configuration doesn't work (RangeError: Maximum call stack size exceeded)
See original GitHub issueMy vite.config.ts is
import { defineConfig } from 'vite'
import WindiCSS from 'vite-plugin-windicss'
import tsconfigPaths from 'vite-tsconfig-paths'
export default defineConfig({ plugins: [WindiCSS(), tsconfigPaths()] })
And windy.config.ts
import { defineConfig } from 'vite-plugin-windicss'
import { transform } from 'windicss/helpers'
export default defineConfig({
darkMode: false,
theme: {
extend: {
colors: require('daisyui/colors/windi'),
},
},
extract: {
include: ['index.html', 'src/**/*.{vue,html,jsx,tsx}'],
exclude: ['node_modules/**/*', '.git/**/*'],
},
plugins: [transform('daisyui')],
})
When running vite serve, this results in
🌼 daisyUI components 1.21.0 https://github.com/saadeghi/daisyui
error when starting dev server:
RangeError: Maximum call stack size exceeded
at guessClassName
Issue Analytics
- State:
- Created 2 years ago
- Reactions:5
- Comments:5
Top Results From Across the Web
2.4.2 - RangeError: Maximum call stack size exceeded #4869
I have an important issue with Vitejs. I'm working with Craft (CMS), I was using webpack and I switched for vitejs but Swiper...
Read more >Vite.js + React: Maximum call stack size exceeded
I solved this using the reactJsx plugin only in development: vite.config.js: export default defineConfig(({ mode }) => { const isDevEnv ...
Read more >Vite.js + React: Maximum call stack size exceeded-babel.js
I solved this using the reactJsx plugin only in development: vite.config.js: export default defineConfig(({ mode }) => { const isDevEnv = mode ...
Read more >vite-plugin-windicss - npm
Windi CSS for Vite, it's fast!. Latest version: 1.8.10, last published: 10 days ago. Start using vite-plugin-windicss in your project by ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@konti-kun Your solution fixed the issue here. I’m using the latest DaisyUI version and everything is just awesome. Thanks!
@konti-kun You are a genius in your field. Solved!