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

template报下面的错误_H-rosy的博客-CSDN博客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 `"vueCompilerOphttps://blog.csdn.net/qq_51580852/article/details/124965335?csdn_share_tail=%7B%22type%22%3A%22blog%22%2C%22rType%22%3A%22article%22%2C%22rId%22%3A%22124965335%22%2C%22source%22%3A%22qq_51580852%22%7D找到文件 jsconfig.json,将这段代码复制进去:

{
  "compilerOptions": {
    "target": "es5",
    "module": "esnext",
    "baseUrl": "./",
    "jsx": "preserve",	//在这里添加"jsx": "preserve",
    "moduleResolution": "node",
    "paths": {
      "@/*": [
        "src/*"
      ]
    },
    "lib": [
      "esnext",
      "dom",
      "dom.iterable",
      "scripthost"
    ]
  }
}

大家都可以试试

Logo

前往低代码交流专区

更多推荐