class is not assignable to generic components (rfc436) #2744
Labels
bug
Something isn't working
good reproduction ✨
This issue provides a good reproduction, we will be able to investigate it first
With
"experimentalRfc436": true
enabled,vue-tsc
complains when adding aclass
to generic components, since version1.4.4
, and still with version1.6.0
. Version1.4.3
works fine in this regard.Please find a link to a reproduction repo and below the exact error message:
"Argument of type '{ class: string; }' is not assignable to parameter of type '{ foo?: string | undefined; } & VNodeProps'.
Object literal may only specify known properties, and 'class' does not exist in type '{ foo?: string | undefined; } & VNodeProps'."
In the reproduction repo, please see the two errors in component
TheWelcome.vue
(either with vscode extension or by runningyarn type-check
).The text was updated successfully, but these errors were encountered: