Open nigiwen opened 1 month ago
Why is this type any?
https://stackblitz.com/edit/vitejs-vite-rwxhvw?file=vite.config.ts,components.d.ts
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
pnpm
Start a new pull request in StackBlitz Codeflow.
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
public-hoist-pattern=@vue/*
.npmrc
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
Used Package Manager
pnpm
Validations