Skip to content

type errors on slots with vue-tsc 2.2.4 #3405

Closed
@simonmaass

Description

@simonmaass

Environment

  • node: 22
  • nuxt: 3.15.4

Is this bug related to Nuxt or Vue?

Nuxt

Version

v3.0.0-alpha.13

Reproduction

not required

Description

run "npx nuxi typecheck"

 Argument of type '{ item: T; index: number; }' is not assignable to parameter of type '({ leading: SlotProps<T>; default: SlotProps<T>; trailing: SlotProps<T>; content: SlotProps<T>; } & Record<string, SlotProps<T>> & (T["slot"] extends string ? Record<...> : Record<...>))[string] & SlotProps<...> extends (props: infer P) => any ? P : {}'.

137         <slot :name="item.slot || 'content'" :item="item" :index="index">

Image

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstreamv3#1289

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions