vite-plugin-vue
vite-plugin-vue copied to clipboard
Type instantiation is excessively deep and possibly infinite
Related plugins
-
[X] plugin-vue
-
[ ] plugin-vue-jsx
Describe the bug
I have this type of error when installing the Vite plugin Vue on my Nuxt app. I don't really know if I have to create this issue here or in the Nuxt repo, but I think it is more related to the plugin.
Reproduction
https://github.com/HugoRCD/shelve/blob/main/apps/app/nuxt.config.ts
Steps to reproduce
bun run dev
System Info
System:
OS: macOS 15.0
CPU: (8) arm64 Apple M1 Pro
Memory: 75.13 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.14.0 - ~/.nvm/versions/node/v20.14.0/bin/node
npm: 10.7.0 - ~/.nvm/versions/node/v20.14.0/bin/npm
pnpm: 8.15.6 - ~/Library/pnpm/pnpm
bun: 1.1.15 - ~/.bun/bin/bun
Browsers:
Chrome: 122.0.6261.94
Safari: 18.0
Used Package Manager
npm
Logs
No response
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- [X] The provided reproduction is a minimal reproducible example of the bug.
Having the same issue. Everything works though, the error can be suppressed using @ts-expect-error or @ts-ignore.
Will a fix be realeased for this?
I believe this isn't caused by the code on plugin-vue side and guess it's related to https://github.com/nuxt/nuxt/issues/31908.