Description
Vue - Official extension or vue-tsc version
3.0.1
VSCode version
1.101.2
Vue version
3.5.17
TypeScript version
5.8.3
System Info
System: OS: Windows 11 10.0.26100 CPU: (16) x64 AMD Ryzen 7 7730U with Radeon Graphics Memory: 7.61 GB / 38.83 GB Binaries: Node: 24.3.0 - C:\Program Files\nodejs\node.EXE npm: 11.4.2 - C:\Program Files\nodejs\npm.CMD pnpm: 10.12.4 - ~\AppData\Local\pnpm\.tools\@pnpm+win-x64\10.12.4\bin\pnpm.CMD bun: 1.2.15 - ~\.bun\bin\bun.EXE Browsers: Edge: Chromium (135.0.3179.85) Internet Explorer: 11.0.26100.1882
package.json dependencies
Steps to reproduce
- Run
pnpm i
- Run
pnpm typecheck
- Observe that you get a type error
Spread types may only be created from object types
What is expected?
No type errors for spreading slot props from scoped slots
What is actually happening?
Getting Spread types may only be created from object types
which does not happen on vue-tsc v2
Link to minimal reproduction
https://stackblitz.com/edit/github-gzbuzr-ryufcypm
Any additional comments?
Hi, I wanted to migrate to v3, and I normally use wrapper components over vuetify with scoped slots, which worked fine in v2, but after migrate to v3, there were several issues, and this is one of them