Closed troy351 closed 5 years ago
Can you show the JSX shim you're using in your project @troy351?
the same as shims-tsx.d.ts in vue-cli
This is not a JSX issue but an issue in TS.
https://github.com/Microsoft/TypeScript/issues/28806
It is on the teams radar to be fixed.
Solution for now is to stay behind a version, or use if statements to ensure a specific tag type.
Original issue here vuejs/vue-cli#3067
Steps to reproduce
vue-cli
with only babel and typescript (use class style component).remove
template
field and add render code inApp.vue
What is expected?
No Error
What is actually happening?
Error
Type '{ class: string; }' is not assignable to type '{}'
However, the codes below works fine