nuxt: Excessive stack depth comparing types 'NuxtModule' and 'NuxtModule' + Type instantiation is excessively deep and possibly infinite.
Environment
- Operating System:
Windows_NT - Node Version:
v14.17.1 - Nuxt Version:
3.0.0-rc.2 - Package Manager:
yarn@1.22.5 - Builder:
vite - User Config:
modules,css,build,runtimeConfig,tailwindcss - Runtime Modules:
@nuxtjs/tailwindcss@5.0.4,@pinia/nuxt@0.1.9,@vueuse/nuxt@8.4.1,./modules/storesAutoImports - Build Modules:
-
Reproduction
Describe the bug
In the Nuxt config file, the tailwindcss config throws the following errors:
- Excessive stack depth comparing types ‘NuxtModule<ModuleOptions>’ and ‘NuxtModule<ModuleOptions>’ [ts(2321)]
- Type instantiation is excessively deep and possibly infinite [ts(2589)]
Additional context
Related: https://github.com/nuxt/framework/discussions/4754
Screenshot:

Logs
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 8
- Comments: 15 (5 by maintainers)
I suspect you have multiple versions of nuxt/schema or kit installed. Try running
npx nuxi upgrade --forceto refresh your lockfile.After
nuxt v.3.2.3and newer the problem appears again… https://github.com/nuxt/nuxt/issues/20159Issue is happening in
nuxt v 3.7.3with package@dargmuesli/nuxt-cookie-control.Edit: Issue was package caused duplicate
@nuxt/kitwithv 3.7.1After updating to
nuxt v3.2this issue fixed itself.+1 experiencing the same issue with only:
on:
Darwinv16.14.03.0.0-rc.2yarn@1.17.3vitetelemetry--