vue3 + tsx 报错JSX element implicitly has type ‘any‘ because no interface ‘JSX.IntrinsicElements‘
【代码】vue3 + tsx 报错JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements'
·
需要在 tsconfig.json 增加:
{
"compilerOptions": {
"jsx": "preserve",
"jsxImportSource": "vue"
}
}
参考:
更多推荐
所有评论(0)