Skip to content

typeCheck: true - build errors #3478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gygoo opened this issue Mar 7, 2025 · 1 comment
Closed

typeCheck: true - build errors #3478

gygoo opened this issue Mar 7, 2025 · 1 comment
Labels
bug Something isn't working duplicate This issue or pull request already exists v3 #1289

Comments

@gygoo
Copy link

gygoo commented Mar 7, 2025

Environment

Is this bug related to Nuxt or Vue?

Nuxt

Version

3.0.0-beta.2

Reproduction

https://codesandbox.io/p/sandbox/condescending-tree-q3x5z8

Description

Errors after running the command: npm run build

Building Nuxt Nitro server (preset: node-server, compatibility date: 2024-11-01) nitro 8:28:55 AM
.nuxt/ui-image-component.ts:1:25 - error TS2307: Cannot find module '/app/node_modules/@nuxt/image/dist/runtime/components/NuxtImg.vue' or its corresponding type declarations.

1 export { default } from "/app/node_modules/@nuxt/image/dist/runtime/components/NuxtImg.vue"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@nuxt/ui/dist/runtime/components/Accordion.vue:95:12 - error TS2345: Argument of type '{ item: T; index: number; open: boolean; }' is not assignable to parameter of type 'NonNullable<({ leading: SlotProps; default: SlotProps; trailing: SlotProps; content: SlotProps; body: SlotProps; } & Record<...> & (T["slot"] extends string ? Record<...> : Record<...>))["leading"] & SlotProps<...>> extends (props: infer P) => any ? P : {}'.

95
~~~~

node_modules/@nuxt/ui/dist/runtime/components/Accordion.vue:100:14 - error TS2345: Argument of type '{ item: T; index: number; open: boolean; }' is not assignable to parameter of type 'NonNullable<({ leading: SlotProps; default: SlotProps; trailing: SlotProps; content: SlotProps; body: SlotProps; } & Record<...> & (T["slot"] extends string ? Record<...> : Record<...>))["default"] & SlotProps<...>> extends (props: infer P) => any ? P : {}'.

100 {{ get(item, props.labelKey as string) }}
~~~~

node_modules/@nuxt/ui/dist/runtime/components/Accordion.vue:103:12 - error TS2345: Argument of type '{ item: T; index: number; open: boolean; }' is not assignable to parameter of type 'NonNullable<({ leading: SlotProps; default: SlotProps; trailing: SlotProps; content: SlotProps; body: SlotProps; } & Record<...> & (T["slot"] extends string ? Record<...> : Record<...>))["trailing"] & SlotProps<...>> extends (props: infer P) => any ? P : {}'.

103
~~~~

node_modules/@nuxt/ui/dist/runtime/components/Accordion.vue:110:10 - error TS2345: Argument of type '{ item: T; index: number; open: boolean; }' is not assignable to parameter of type '({ leading: SlotProps; default: SlotProps; trailing: SlotProps; content: SlotProps; body: SlotProps; } & Record<...> & (T["slot"] extends string ? Record<...> : Record<...>))[string] & SlotProps<...> extends (props: infer P) => any ? P : {}'.

110
~~~~

node_modules/@nuxt/ui/dist/runtime/components/Accordion.vue:112:14 - error TS2345: Argument of type '{ item: T; index: number; open: boolean; }' is not assignable to parameter of type '({ leading: SlotProps; default: SlotProps; trailing: SlotProps; content: SlotProps; body: SlotProps; } & Record<...> & (T["slot"] extends string ? Record<...> : Record<...>))[string] & SlotProps<...> extends (props: infer P) => any ? P : {}'.

112
~~~~

node_modules/@nuxt/ui/dist/runtime/components/Breadcrumb.vue:85:16 - error TS2345: Argument of type '{ item: T; index: number; }' is not assignable to parameter of type '({ item: SlotProps; 'item-leading': SlotProps; 'item-label': SlotProps; 'item-trailing': SlotProps; separator(props?: {} | undefined): any; } & Record<...> & (T["slot"] extends string ? Record<...> : Record<...>))[string] & SlotProps<...> extends (props: infer P) => any ? P : {}'.

85
~~~~

node_modules/@nuxt/ui/dist/runtime/components/Breadcrumb.vue:86:18 - error TS2345: Argument of type '{ item: T; active: boolean; index: number; }' is not assignable to parameter of type '({ item: SlotProps; 'item-leading': SlotProps; 'item-label': SlotProps; 'item-trailing': SlotProps; separator(props?: {} | undefined): any; } & Record<...> & (T["slot"] extends string ? Record<...> : Record<...>))[string] & SlotProps<...> extends (props: infer P) => any ? P : {}'.

86
~~~~

node_modules/@nuxt/ui/dist/runtime/components/Breadcrumb.vue:92:20 - error TS2345: Argument of type '{ item: T; active: boolean; index: number; }' is not assignable to parameter of type '({ item: SlotProps; 'item-leading': SlotProps; 'item-label': SlotProps; 'item-trailing': SlotProps; separator(props?: {} | undefined): any; } & Record<...> & (T["slot"] extends string ? Record<...> : Record<...>))[string] & SlotProps<...> extends (props: infer P) => any ? P : {}'.

92
~~~~

node_modules/@nuxt/ui/dist/runtime/components/Breadcrumb.vue:97:18 - error TS2345: Argument of type '{ item: T; active: boolean; index: number; }' is not assignable to parameter of type '({ item: SlotProps; 'item-leading': SlotProps; 'item-label': SlotProps; 'item-trailing': SlotProps; separator(props?: {} | undefined): any; } & Record<...> & (T["slot"] extends string ? Record<...> : Record<...>))[string] & SlotProps<...> extends (props: infer P) => any ? P : {}'.

97
~~~~

node_modules/@nuxt/ui/dist/runtime/components/Breadcrumb.vue:104:12 - error TS2345: Argument of type '{}' is not assignable to parameter of type 'NonNullable<({ item: SlotProps; 'item-leading': SlotProps; 'item-label': SlotProps; 'item-trailing': SlotProps; separator(props?: {} | undefined): any; } & Record<...> & (T["slot"] extends string ? Record<...> : Record<...>))["separator"] & ((props?: {} | undefined) => any)> extends (props: infer P) => a...'.

104
~~~~

node_modules/@nuxt/ui/dist/runtime/components/CommandPalette.vue:255:12 - error TS2345: Argument of type '{ ui: { root: (slotProps?: ({ loading?: boolean | undefined; active?: boolean | undefined; } & ClassProp) | undefined) => string; input: (slotProps?: ({ loading?: boolean | undefined; active?: boolean | undefined; } & ClassProp) | undefined) => string; ... 20 more ...; itemLabelSuffix...' is not assignable to parameter of type 'NonNullable<({ empty(props: { searchTerm?: string | undefined; }): any; close(props: { ui: any; }): any; item: SlotProps; 'item-leading': SlotProps; 'item-label': SlotProps<...>; 'item-trailing': SlotProps<...>; } & Record<...> & (G["slot"] extends string ? Record<...> : Record<...>) & (T["slot"] extends strin...'.

255
~~~~

node_modules/@nuxt/ui/dist/runtime/components/CommandPalette.vue:289:18 - error TS2345: Argument of type '{ item: T & { labelHtml: string | undefined; suffixHtml: string | undefined; matches?: FuseResult["matches"]; }; index: number; }' is not assignable to parameter of type '({ empty(props: { searchTerm?: string | undefined; }): any; close(props: { ui: any; }): any; item: SlotProps; 'item-leading': SlotProps; 'item-label': SlotProps<...>; 'item-trailing': SlotProps<...>; } & Record<...> & (G["slot"] extends string ? Record<...> : Record<...>) & (T["slot"] extends string ? Record<....'.

289
~~~~

node_modules/@nuxt/ui/dist/runtime/components/CommandPalette.vue:290:20 - error TS2345: Argument of type '{ item: T & { labelHtml: string | undefined; suffixHtml: string | undefined; matches?: FuseResult["matches"]; }; index: number; }' is not assignable to parameter of type '({ empty(props: { searchTerm?: string | undefined; }): any; close(props: { ui: any; }): any; item: SlotProps; 'item-leading': SlotProps; 'item-label': SlotProps<...>; 'item-trailing': SlotProps<...>; } & Record<...> & (G["slot"] extends string ? Record<...> : Record<...>) & (T["slot"] extends string ? Record<....'.

290
~~~~

node_modules/@nuxt/ui/dist/runtime/components/CommandPalette.vue:305:22 - error TS2345: Argument of type '{ item: T & { labelHtml: string | undefined; suffixHtml: string | undefined; matches?: FuseResult["matches"]; }; index: number; }' is not assignable to parameter of type '({ empty(props: { searchTerm?: string | undefined; }): any; close(props: { ui: any; }): any; item: SlotProps; 'item-leading': SlotProps; 'item-label': SlotProps<...>; 'item-trailing': SlotProps<...>; } & Record<...> & (G["slot"] extends string ? Record<...> : Record<...>) & (T["slot"] extends string ? Record<....'.

305
~~~~

node_modules/@nuxt/ui/dist/runtime/components/CommandPalette.vue:315:22 - error TS2345: Argument of type '{ item: T & { labelHtml: string | undefined; suffixHtml: string | undefined; matches?: FuseResult["matches"]; }; index: number; }' is not assignable to parameter of type '({ empty(props: { searchTerm?: string | undefined; }): any; close(props: { ui: any; }): any; item: SlotProps; 'item-leading': SlotProps; 'item-label': SlotProps<...>; 'item-trailing': SlotProps<...>; } & Record<...> & (G["slot"] extends string ? Record<...> : Record<...>) & (T["slot"] extends string ? Record<....'.

315
~~~~

node_modules/@nuxt/ui/dist/runtime/components/CommandPalette.vue:334:10 - error TS2345: Argument of type '{ searchTerm: string; }' is not assignable to parameter of type 'NonNullable<({ empty(props: { searchTerm?: string | undefined; }): any; close(props: { ui: any; }): any; item: SlotProps; 'item-leading': SlotProps; 'item-label': SlotProps<...>; 'item-trailing': SlotProps<...>; } & Record<...> & (G["slot"] extends string ? Record<...> : Record<...>) & (T["slot"] extends strin...'.

334
~~~~

node_modules/@nuxt/ui/dist/runtime/components/ContextMenu.vue:117:8 - error TS2345: Argument of type '{}' is not assignable to parameter of type 'NonNullable<({ default(props?: {} | undefined): any; item: SlotProps; 'item-leading': SlotProps; 'item-label': SlotProps; 'item-trailing': SlotProps<...>; } & Record<...> & (T["slot"] extends string ? Record<...> : Record<...>))["default"] & ((props?: {} | undefined) => any)> extends (props: infer P) => any...'.

117
~~~~

node_modules/@nuxt/ui/dist/runtime/components/ContextMenuContent.vue:56:6 - error TS2345: Argument of type '{ item: T; index: number; }' is not assignable to parameter of type '({ default(props?: {} | undefined): any; item: SlotProps; 'item-leading': SlotProps; 'item-label': SlotProps; 'item-trailing': SlotProps<...>; } & Record<...> & (T["slot"] extends string ? Record<...> : Record<...>))[string] & SlotProps<...> extends (props: infer P) => any ? P : {}'.

56
~~~~

node_modules/@nuxt/ui/dist/runtime/components/ContextMenuContent.vue:57:8 - error TS2345: Argument of type '{ item: T; active: boolean | undefined; index: number; }' is not assignable to parameter of type '({ default(props?: {} | undefined): any; item: SlotProps; 'item-leading': SlotProps; 'item-label': SlotProps; 'item-trailing': SlotProps<...>; } & Record<...> & (T["slot"] extends string ? Record<...> : Record<...>))[string] & SlotProps<...> extends (props: infer P) => any ? P : {}'.

57
~~~~

node_modules/@nuxt/ui/dist/runtime/components/ContextMenuContent.vue:64:10 - error TS2345: Argument of type '{ item: T; active: boolean | undefined; index: number; }' is not assignable to parameter of type '({ default(props?: {} | undefined): any; item: SlotProps; 'item-leading': SlotProps; 'item-label': SlotProps; 'item-trailing': SlotProps<...>; } & Record<...> & (T["slot"] extends string ? Record<...> : Record<...>))[string] & SlotProps<...> extends (props: infer P) => any ? P : {}'.

64
~~~~

node_modules/@nuxt/ui/dist/runtime/components/ContextMenuContent.vue:72:10 - error TS2345: Argument of type '{ item: T; active: boolean | undefined; index: number; }' is not assignable to parameter of type '({ default(props?: {} | undefined): any; item: SlotProps; 'item-leading': SlotProps; 'item-label': SlotProps; 'item-trailing': SlotProps<...>; } & Record<...> & (T["slot"] extends string ? Record<...> : Record<...>))[string] & SlotProps<...> extends (props: infer P) => any ? P : {}'.

72
~~~~

node_modules/@nuxt/ui/dist/runtime/components/ContextMenuContent.vue:151:8 - error TS2345: Argument of type '{}' is not assignable to parameter of type 'NonNullable<({ default(props?: {} | undefined): any; item: SlotProps; 'item-leading': SlotProps; 'item-label': SlotProps; 'item-trailing': SlotProps<...>; } & Record<...> & (T["slot"] extends string ? Record<...> : Record<...>))["default"] & ((props?: {} | undefined) => any)> extends (props: infer P) => any...'.

151
~~~~

node_modules/@nuxt/ui/dist/runtime/components/DropdownMenu.vue:127:8 - error TS2345: Argument of type '{ open: boolean; }' is not assignable to parameter of type 'NonNullable<({ default(props: { open: boolean; }): any; item: SlotProps; 'item-leading': SlotProps; 'item-label': SlotProps; 'item-trailing': SlotProps<...>; } & Record<...> & (T["slot"] extends string ? Record<...> : Record<...>))["default"] & ((props: { ...; }) => any)> extends (props: infer P) => any ? P...'.

127
~~~~

node_modules/@nuxt/ui/dist/runtime/components/DropdownMenuContent.vue:62:6 - error TS2345: Argument of type '{ item: T; index: number; }' is not assignable to parameter of type '(Omit<DropdownMenuSlots, "default"> & { default(props?: {} | undefined): any; })[string] & DropdownMenuSlots[string] & {} extends (props: infer P) => any ? P : {}'.

62
~~~~

node_modules/@nuxt/ui/dist/runtime/components/DropdownMenuContent.vue:63:8 - error TS2345: Argument of type '{ item: T; active: boolean | undefined; index: number; }' is not assignable to parameter of type '(Omit<DropdownMenuSlots, "default"> & { default(props?: {} | undefined): any; })[string] & DropdownMenuSlots[string] & {} extends (props: infer P) => any ? P : {}'.

63
~~~~

node_modules/@nuxt/ui/dist/runtime/components/DropdownMenuContent.vue:70:10 - error TS2345: Argument of type '{ item: T; active: boolean | undefined; index: number; }' is not assignable to parameter of type '(Omit<DropdownMenuSlots, "default"> & { default(props?: {} | undefined): any; })[string] & DropdownMenuSlots[string] & {} extends (props: infer P) => any ? P : {}'.

70
~~~~

node_modules/@nuxt/ui/dist/runtime/components/DropdownMenuContent.vue:78:10 - error TS2345: Argument of type '{ item: T; active: boolean | undefined; index: number; }' is not assignable to parameter of type '(Omit<DropdownMenuSlots, "default"> & { default(props?: {} | undefined): any; })[string] & DropdownMenuSlots[string] & {} extends (props: infer P) => any ? P : {}'.

78
~~~~

node_modules/@nuxt/ui/dist/runtime/components/DropdownMenuContent.vue:160:8 - error TS2345: Argument of type '{}' is not assignable to parameter of type 'NonNullable<(Omit<DropdownMenuSlots, "default"> & { default(props?: {} | undefined): any; })["default"] & ((props?: {} | undefined) => any)> extends (props: infer P) => any ? P : {}'.

160
~~~~

node_modules/@nuxt/ui/dist/runtime/components/NavigationMenu.vue:178:6 - error TS2345: Argument of type '{ item: T; index: number; }' is not assignable to parameter of type '({ item: SlotProps; 'item-leading': SlotProps; 'item-label': SlotProps; 'item-trailing': SlotProps; 'item-content': SlotProps<...>; } & Record<...> & (T["slot"] extends string ? Record<...> : Record<...>))[string] & SlotProps<...> extends (props: infer P) => any ? P : {}'.

178
~~~~

node_modules/@nuxt/ui/dist/runtime/components/NavigationMenu.vue:179:8 - error TS2345: Argument of type '{ item: T; active: boolean | undefined; index: number; }' is not assignable to parameter of type '({ item: SlotProps; 'item-leading': SlotProps; 'item-label': SlotProps; 'item-trailing': SlotProps; 'item-content': SlotProps<...>; } & Record<...> & (T["slot"] extends string ? Record<...> : Record<...>))[string] & SlotProps<...> extends (props: infer P) => any ? P : {}'.

179
~~~~

node_modules/@nuxt/ui/dist/runtime/components/NavigationMenu.vue:188:10 - error TS2345: Argument of type '{ item: T; active: boolean | undefined; index: number; }' is not assignable to parameter of type '({ item: SlotProps; 'item-leading': SlotProps; 'item-label': SlotProps; 'item-trailing': SlotProps; 'item-content': SlotProps<...>; } & Record<...> & (T["slot"] extends string ? Record<...> : Record<...>))[string] & SlotProps<...> extends (props: infer P) => any ? P : {}'.

188
~~~~

node_modules/@nuxt/ui/dist/runtime/components/NavigationMenu.vue:196:10 - error TS2345: Argument of type '{ item: T; active: boolean | undefined; index: number; }' is not assignable to parameter of type '({ item: SlotProps; 'item-leading': SlotProps; 'item-label': SlotProps; 'item-trailing': SlotProps; 'item-content': SlotProps<...>; } & Record<...> & (T["slot"] extends string ? Record<...> : Record<...>))[string] & SlotProps<...> extends (props: infer P) => any ? P : {}'.

196
~~~~

node_modules/@nuxt/ui/dist/runtime/components/NavigationMenu.vue:239:12 - error TS2345: Argument of type '{ item: T; active: boolean; index: number; }' is not assignable to parameter of type '({ item: SlotProps; 'item-leading': SlotProps; 'item-label': SlotProps; 'item-trailing': SlotProps; 'item-content': SlotProps<...>; } & Record<...> & (T["slot"] extends string ? Record<...> : Record<...>))[string] & SlotProps<...> extends (props: infer P) => any ? P : {}'.

239
~~~~

node_modules/@nuxt/ui/dist/runtime/components/Stepper.vue:131:16 - error TS2345: Argument of type '{ item: T; }' is not assignable to parameter of type 'NonNullable<({ indicator: SlotProps; title: SlotProps; description: SlotProps; content: SlotProps; } & Record<string, SlotProps> & (T["slot"] extends string ? Record<...> : Record<...>))["indicator"] & SlotProps<...>> extends (props: infer P) => any ? P : {}'.

131
~~~~

node_modules/@nuxt/ui/dist/runtime/components/Stepper.vue:148:14 - error TS2345: Argument of type '{ item: T; }' is not assignable to parameter of type 'NonNullable<({ indicator: SlotProps; title: SlotProps; description: SlotProps; content: SlotProps; } & Record<string, SlotProps> & (T["slot"] extends string ? Record<...> : Record<...>))["title"] & SlotProps<...>> extends (props: infer P) => any ? P : {}'.

148
~~~~

node_modules/@nuxt/ui/dist/runtime/components/Stepper.vue:153:14 - error TS2345: Argument of type '{ item: T; }' is not assignable to parameter of type 'NonNullable<({ indicator: SlotProps; title: SlotProps; description: SlotProps; content: SlotProps; } & Record<string, SlotProps> & (T["slot"] extends string ? Record<...> : Record<...>))["description"] & SlotProps<...>> extends (props: infer P) => any ? P : {}'.

153
~~~~

node_modules/@nuxt/ui/dist/runtime/components/Table.vue:305:10 - error TS2345: Argument of type '{}' is not assignable to parameter of type 'NonNullable<({ expanded: (props: { row: Row; }) => any; empty: (props?: {} | undefined) => any; caption: (props?: {} | undefined) => any; } & Record<string, (props: HeaderContext<T, unknown>) => any> & Record<...> & Record<...> & Record<...>)["caption"] & ((props?: {} | undefined) => any)> extends (props: infer P...'.

305
~~~~

node_modules/@nuxt/ui/dist/runtime/components/Table.vue:318:14 - error TS2345: Argument of type '{ column: Column<T, unknown>; header: Header<T, unknown>; table: Table; }' is not assignable to parameter of type '({ expanded: (props: { row: Row; }) => any; empty: (props?: {} | undefined) => any; caption: (props?: {} | undefined) => any; } & Record<string, (props: HeaderContext<T, unknown>) => any> & Record<...> & Record<...> & Record<...>)[string] & ((props: HeaderContext<...>) => any) & ((props: CellContext<...>) => any)...'.

318
~~~~

node_modules/@nuxt/ui/dist/runtime/components/Table.vue:343:18 - error TS2345: Argument of type '{ cell: Cell<T, unknown>; column: Column<T, unknown>; getValue: Getter; renderValue: Getter; row: Row; table: Table; }' is not assignable to parameter of type '({ expanded: (props: { row: Row; }) => any; empty: (props?: {} | undefined) => any; caption: (props?: {} | undefined) => any; } & Record<string, (props: HeaderContext<T, unknown>) => any> & Record<...> & Record<...> & Record<...>)[string] & ((props: HeaderContext<...>) => any) & ((props: CellContext<...>) => any)...'.

343
~~~~

node_modules/@nuxt/ui/dist/runtime/components/Table.vue:350:18 - error TS2345: Argument of type '{ row: Row; }' is not assignable to parameter of type 'NonNullable<({ expanded: (props: { row: Row; }) => any; empty: (props?: {} | undefined) => any; caption: (props?: {} | undefined) => any; } & Record<string, (props: HeaderContext<T, unknown>) => any> & Record<...> & Record<...> & Record<...>)["expanded"] & ((props: { ...; }) => any)> extends (props: infer P) => a...'.

350
~~~~

node_modules/@nuxt/ui/dist/runtime/components/Table.vue:358:14 - error TS2345: Argument of type '{}' is not assignable to parameter of type 'NonNullable<({ expanded: (props: { row: Row; }) => any; empty: (props?: {} | undefined) => any; caption: (props?: {} | undefined) => any; } & Record<string, (props: HeaderContext<T, unknown>) => any> & Record<...> & Record<...> & Record<...>)["empty"] & ((props?: {} | undefined) => any)> extends (props: infer P) ...'.

358
~~~~

node_modules/@nuxt/ui/dist/runtime/components/Tabs.vue:103:10 - error TS2345: Argument of type '{ item: T; index: number; }' is not assignable to parameter of type 'NonNullable<({ leading: SlotProps; default: SlotProps; trailing: SlotProps; content: SlotProps; } & Record<string, SlotProps> & (T["slot"] extends string ? Record<...> : Record<...>))["leading"] & SlotProps<...>> extends (props: infer P) => any ? P : {}'.

103
~~~~

node_modules/@nuxt/ui/dist/runtime/components/Tabs.vue:109:12 - error TS2345: Argument of type '{ item: T; index: number; }' is not assignable to parameter of type 'NonNullable<({ leading: SlotProps; default: SlotProps; trailing: SlotProps; content: SlotProps; } & Record<string, SlotProps> & (T["slot"] extends string ? Record<...> : Record<...>))["default"] & SlotProps<...>> extends (props: infer P) => any ? P : {}'.

109 {{ get(item, props.labelKey as string) }}
~~~~

node_modules/@nuxt/ui/dist/runtime/components/Tabs.vue:112:10 - error TS2345: Argument of type '{ item: T; index: number; }' is not assignable to parameter of type 'NonNullable<({ leading: SlotProps; default: SlotProps; trailing: SlotProps; content: SlotProps; } & Record<string, SlotProps> & (T["slot"] extends string ? Record<...> : Record<...>))["trailing"] & SlotProps<...>> extends (props: infer P) => any ? P : {}'.

112
~~~~

node_modules/@nuxt/ui/dist/runtime/components/Tabs.vue:118:10 - error TS2345: Argument of type '{ item: T; index: number; }' is not assignable to parameter of type '({ leading: SlotProps; default: SlotProps; trailing: SlotProps; content: SlotProps; } & Record<string, SlotProps> & (T["slot"] extends string ? Record<...> : Record<...>))[string] & SlotProps<...> extends (props: infer P) => any ? P : {}'.

118
~~~~

node_modules/@nuxt/ui/dist/runtime/components/Tree.vue:151:12 - error TS2345: Argument of type '{ item: T; index: number; level: number; expanded: boolean; selected: boolean; }' is not assignable to parameter of type '({ item: SlotProps; 'item-leading': SlotProps; 'item-label': SlotProps; 'item-trailing': SlotProps; } & Record<string, SlotProps<...>> & (T["slot"] extends string ? Record<...> : Record<...>))[string] & SlotProps<...> extends (props: infer P) => any ? P : {}'.

151
~~~~

node_modules/@nuxt/ui/dist/runtime/components/Tree.vue:152:14 - error TS2345: Argument of type '{ item: T; index: number; level: number; expanded: boolean; selected: boolean; }' is not assignable to parameter of type '({ item: SlotProps; 'item-leading': SlotProps; 'item-label': SlotProps; 'item-trailing': SlotProps; } & Record<string, SlotProps<...>> & (T["slot"] extends string ? Record<...> : Record<...>))[string] & SlotProps<...> extends (props: infer P) => any ? P : {}'.

152
~~~~

node_modules/@nuxt/ui/dist/runtime/components/Tree.vue:166:16 - error TS2345: Argument of type '{ item: T; index: number; level: number; expanded: boolean; selected: boolean; }' is not assignable to parameter of type '({ item: SlotProps; 'item-leading': SlotProps; 'item-label': SlotProps; 'item-trailing': SlotProps; } & Record<string, SlotProps<...>> & (T["slot"] extends string ? Record<...> : Record<...>))[string] & SlotProps<...> extends (props: infer P) => any ? P : {}'.

166
~~~~

node_modules/@nuxt/ui/dist/runtime/components/Tree.vue:172:16 - error TS2345: Argument of type '{ item: T; index: number; level: number; expanded: boolean; selected: boolean; }' is not assignable to parameter of type '({ item: SlotProps; 'item-leading': SlotProps; 'item-label': SlotProps; 'item-trailing': SlotProps; } & Record<string, SlotProps<...>> & (T["slot"] extends string ? Record<...> : Record<...>))[string] & SlotProps<...> extends (props: infer P) => any ? P : {}'.

172
~~~~

Found 50 errors in 13 files.

Errors Files
1 .nuxt/ui-image-component.ts:1
5 node_modules/@nuxt/ui/dist/runtime/components/Accordion.vue:95
5 node_modules/@nuxt/ui/dist/runtime/components/Breadcrumb.vue:85
6 node_modules/@nuxt/ui/dist/runtime/components/CommandPalette.vue:255
1 node_modules/@nuxt/ui/dist/runtime/components/ContextMenu.vue:117
5 node_modules/@nuxt/ui/dist/runtime/components/ContextMenuContent.vue:56
1 node_modules/@nuxt/ui/dist/runtime/components/DropdownMenu.vue:127
5 node_modules/@nuxt/ui/dist/runtime/components/DropdownMenuContent.vue:62
5 node_modules/@nuxt/ui/dist/runtime/components/NavigationMenu.vue:178
3 node_modules/@nuxt/ui/dist/runtime/components/Stepper.vue:131
5 node_modules/@nuxt/ui/dist/runtime/components/Table.vue:305
4 node_modules/@nuxt/ui/dist/runtime/components/Tabs.vue:103
4 node_modules/@nuxt/ui/dist/runtime/components/Tree.vue:151

Additional context

No response

Logs

@gygoo gygoo added bug Something isn't working triage v3 #1289 labels Mar 7, 2025
@Shedevro
Copy link

Shedevro commented Mar 7, 2025

vue-tsc > 2.2.0 causes the issue ☹️

@benjamincanac benjamincanac added duplicate This issue or pull request already exists and removed triage labels Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists v3 #1289
Projects
None yet
Development

No branches or pull requests

3 participants