question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vite + windicss + daisy configuration doesn't work (RangeError: Maximum call stack size exceeded)

See original GitHub issue

My 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:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:5

github_iconTop GitHub Comments

1reaction
guizaolscommented, Jan 17, 2022

@konti-kun Your solution fixed the issue here. I’m using the latest DaisyUI version and everything is just awesome. Thanks!

0reactions
liorpcommented, Jan 18, 2022

@konti-kun You are a genius in your field. Solved!

Read more comments on GitHub >

github_iconTop 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 >
Integration for Vite - Windi CSS
Next generation utility-first CSS framework.
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found