vscode出现下面这个问题时:
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文件下输入红框框的内容,然后问题就解决了!!!!
具体啥原理我还不太懂,反正解决了,我先记录一下!如果能帮到你们,那我会更开心!
2022.05.23
补充一下:
可能有的宝子配置完上面的选项之后还是没有解决,然后可以再试试下面这个配置!!
在vue.config.js文件中,加入红框离得配置,别忘记加英文逗号,然后应该就可以解决了!!!!