Closed
Description
If tsconfig.json contains
{
"compilerOptions": {
"noPropertyAccessFromIndexSignature": true,
}
}
Then any <slot/> tag anywhere in the <template> section causes typescript compilation errors:
test.vue:17:6 - error TS4111: Property 'slot' comes from an index signature, so it must be accessed with ['slot'].
17 <slot />
Reproducible in both vscode UI and via "vue-tsc --noEmit".
Activity
WillAvudim commentedon Aug 8, 2021
You are the God! Please live forever.