Skip to content

Using render function on generic components makes slots required #5232

@vlaaadislav

Description

@vlaaadislav

Environment

  • Operating System: Linux
  • Node Version: v20.12.0
  • Nuxt Version: 4.1.2
  • CLI Version: 3.28.0
  • Nitro Version: 2.12.6
  • Package Manager: [email protected]
  • Builder: -
  • User Config: modules, devtools, compatibilityDate, future, css
  • Runtime Modules: @nuxt/[email protected]
  • Build Modules: -

Is this bug related to Nuxt or Vue?

Vue

Package

v4.x

Version

v4.0.1

Reproduction

https://codesandbox.io/p/devbox/icy-violet-8pxrdf?file=%2Fapp%2Fpages%2Findex.vue%3A14%2C28

Description

Basically, if you use generic components via a render function, TypeScript throws an error:
Type 'Readonly<InternalSlots>' is missing the following properties from type ...

I believe this is an upstream issue.

Additional context

Image

Logs

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingp3-lowMinor cosmetic, edge case, or documentation issuetypescriptv4#4488

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions