Skip to content

[v3]: Cannot spread slot props from scoped slots #5474

Closed
@Q16solver

Description

@Q16solver

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

  1. Run pnpm i
  2. Run pnpm typecheck
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    good reproduction ✨This issue provides a good reproduction, we will be able to investigate it first🔨 p3-minor-bug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions