错误 “Target version mismatch. You can specify the target version in ...” 的解决方案

VScode编辑器引入vue项目后,编辑器的自动检测助手报如下错误:

解决方案:在项目的 jsconfig.json 中配置 target 属性,值为项目中 Vue 版本: 

// jsconfig.json 文件
{
  //...其他配置项
  "vueCompilerOptions": {
    "target": 2.7
  }
  
}

猜你喜欢

转载自blog.csdn.net/FunSober/article/details/127623858