vitejs / vite-plugin-vue

Vite Vue Plugins
MIT License
501 stars 154 forks source link

Type instantiation is excessively deep and possibly infinite #422

Open HugoRCD opened 4 months ago

HugoRCD commented 4 months ago

Related plugins

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. CleanShot 2024-06-28 at 16 39 41 CleanShot 2024-06-28 at 16 39 50

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

juni0r commented 3 months ago

Having the same issue. Everything works though, the error can be suppressed using @ts-expect-error or @ts-ignore.

tobychidi commented 2 months ago

Will a fix be realeased for this?