nuxt-themes / typography

Beautifully customizable Prose components for Nuxt Content.
https://typography.nuxt.space
MIT License
164 stars 7 forks source link

[BUG] 500 - Vite error with nuxt-windicss #15

Closed ArthurDanjou closed 1 year ago

ArthurDanjou commented 1 year ago

Environment

- Operating System: `Darwin`
- Node Version:     `v18.4.0`
- Nuxt Version:     `3.0.0`
- Nitro Version:    `1.0.0`
- Package Manager:  `yarn@1.22.19`
- Builder:          `vite`
- User Config:      `extends`, `srcDir`, `app`, `modules`, `css`, `components`
- Runtime Modules:  `nuxt-windicss@2.5.5`, `@nuxtjs/color-mode@3.1.8`, `@vueuse/nuxt@9.5.0`, `@nuxt/content@2.2.1`, `nuxt-icon@0.1.7`, `@nuxtjs/supabase@0.2.5`, `@pinia/nuxt@0.4.3`
- Build Modules:    `-`

Reproduction

https://github.com/ArthurDanjou/artdanj-website-v2

Describe the bug

When I launch the dev server using yarn, I have an error in the console : ERROR Maximum call stack size exceeded and an other one in the browser :

Capture d’écran 2022-11-18 à 15 28 16
Tahul commented 1 year ago

Hey @ArthurDanjou ;

Could you try nuxt-windicss ^2.6.0?

I think @harlan-zw just released it, and it might solve your issue.

harlan-zw commented 1 year ago

I did notice some strange behavior with nuxt-windicss and the latest Docus.

Hopefully the new version fixes, if not, let me know and I'll investigate further

Tahul commented 1 year ago

@harlan-zw ; could you open an issue about it? Even small context would help, but I want to ensure compatibility between both.

ArthurDanjou commented 1 year ago

I have the same error with nuxt-windicss v2.6.0

ArthurDanjou commented 1 year ago

After using nuxt-tailwind instead of nuxt-windicss to test if the bug persists, I can conclude that when I hear nuxt-typography in the nuxt config, the tailwind (and windicss) config is overwritten and all the styling no longer exists