【Vue】组件template中提示“TypeScript intellisense is disabled on template. To enable, configure `“jsx“: ”错误
Vue组件中提示以下错误
·
Vue组件中提示以下错误
TypeScript intellisense is disabled on template. To enable, configure `"jsx": "preserve"` in the `"compilerOptions"` property of tsconfig or jsconfig. To disable this prompt instead, configure `"experimentalDisableTemplateSupport": true` in `"vueCompilerOptions"` property.vo
解决:卸载掉Vue Language Features (Volar)插件
1、评论区:【realchoi】补充:
说的方法有用啊,只不过是卸载了重装而已,楼主少说一句
2、评论区的补充,来自【H-rosy】
可以看看这篇文章:http://t.csdn.cn/Kif9w
{
"compilerOptions": {
"target": "es5",
"module": "esnext",
"baseUrl": "./",
"jsx": "preserve", //在这里添加"jsx": "preserve",
"moduleResolution": "node",
"paths": {
"@/*": [
"src/*"
]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
}
}
大家都可以试试
更多推荐
已为社区贡献11条内容
所有评论(0)