创建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.
解决办法:
在 jsconfig.json 中写入 :
"vueCompilerOptions": {
"experimentalDisableTemplateSupport": true
}
如下图所示:
template下方的波浪线就消失啦!