在 vue3 中使用 tsx 时,遇到了报错提示:JSX 元素隐式具有类型 "any",因为不存在接口 "JSX.IntrinsicElements"。
查询 tsconfig.json 中配置,并修改如下:
tsconfig.json
{ "jsx": "preserve", "jsxImportSource": "vue", }