最近在使用脚手架时遇到template报问题,虽然对运行没有影响,但是一直报问题很烦,看了之后发现其实很好解决。
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.
解决方法:即在tsconfig或jsconfig中配置以下代码
"vueCompilerOptions": {
"experimentalDisableTemplateSupport": true
}
tips:有时候问题报错看不懂没法解决时,可以将报错翻译一下,很多时候报错里会给出相应的解决方法