unplugin / unplugin-vue-components

📲 On-demand components auto importing for Vue
https://www.npmjs.com/package/unplugin-vue-components
MIT License
3.64k stars 340 forks source link

element ui typings any #760

Open nigiwen opened 1 month ago

nigiwen commented 1 month ago

Describe the bug

Why is this type any?

Reproduction

https://stackblitz.com/edit/vitejs-vite-rwxhvw?file=vite.config.ts,components.d.ts

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (8) x64 Intel(R) Core(TM) i3-10105 CPU @ 3.70GHz
    Memory: 15.89 GB / 31.74 GB
  Binaries:
    Node: 20.10.0 - D:\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Local\pnpm\yarn.CMD
    npm: 10.2.3 - D:\nodejs\npm.CMD
    pnpm: 8.15.6 - E:\crm-web\node_modules\.bin\pnpm.CMD
  Browsers:
    Edge: Chromium (123.0.2420.97)
    Internet Explorer: 11.0.22621.3527

Used Package Manager

pnpm

Validations

stackblitz[bot] commented 1 month ago

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

Gao-Jinlong commented 2 weeks ago

I also encountered the same problem in vue3

Based on the information in #638 , I solved this problem by adding public-hoist-pattern=@vue/* to .npmrc