Repository navigation
Missing type file for WebStorm? #6931
|
When I use "#-cell" slot in vue3.5.42 + NuxtUI4.9 and WebStorm2026.2.1, The IDE of WebStorm point out "Unrecognized slot name". const data = [ |
Replies: 1 comment
|
Nothing is actually missing on the Nuxt UI side — the slot is typed, it's WebStorm's own Vue inspection that can't see it.
type DynamicCellSlots<T, K = keyof T> = Record<`${K extends string ? K : never}-cell` | (string & {}), (props: CellContext<T, unknown>) => VNode[]>So for Options:
|
Nothing is actually missing on the Nuxt UI side — the slot is typed, it's WebStorm's own Vue inspection that can't see it.
UTablebuilds its dynamic slot names from your row type with template-literal types (src/runtime/components/Table.vue):So for
{ price: number; quantity: number }you getprice-cell/quantity-cell(plus any other string, since column ids don't have to be keys of the row), and#price-celltype-checks fine withvue-tsc/nuxi typecheck. WebStorm's Unrecognized slot inspection (VueUnrecognizedSlot) can't enumerate the keys o…