错误 “Target version mismatch. You can specify the target version in ...” 的解决方案
vue项目中的jsconfig.json文件要配置target属性,指定vue版本号。
   ·  
 VScode编辑器引入vue项目后,编辑器的自动检测助手报如下错误:

解决方案:在项目的 jsconfig.json 中配置 target 属性,值为项目中 Vue 版本:
// jsconfig.json 文件
{
  //...其他配置项
  "vueCompilerOptions": {
    "target": 2.7
  }
  
}
更多推荐
 


所有评论(0)