❗ Incorrect Target Target version mismatch. You can specify the target version in vueCompilerOptions.target in tsconfig.json / jsconfig.json. (Expected "target": 2.7) vue version: 2.7.14 tsconfig target: 3 (default) vue: /Users/shenglei/Downloads/vue/myvue1/node_modules/vue/package.json tsconfig: file:///Users/shenglei/Downloads/vue/myvue1/jsconfig.json
时间: 2023-07-31 17:07:30 浏览: 141
这个问题的意思是你的 Vue 版本是 2.7.14,但是你的 TypeScript 编译器的目标版本是 3。为了解决这个问题,你需要在你的项目中的 `tsconfig.json` 或者 `jsconfig.json` 文件中指定目标版本为 2.7。你可以在 `vueCompilerOptions` 中添加一个 `target` 属性,并将其设置为 2.7,像这样:
```
{
"compilerOptions": {
// other options
"target": "es5"
},
"vueCompilerOptions": {
"target": 2.7
}
}
```
这样就可以解决这个问题了。记得保存文件并重新编译你的项目。
相关问题
❗ Incorrect Target Target version mismatch. You can specify the target version in vueCompilerOptions.target in tsconfig.json / jsconfig.json. (Expected "target": 2.7)
It seems that there is a version mismatch between the target version specified in the tsconfig.json/jsconfig.json and the expected target version in the vueCompilerOptions.target. The error message suggests that the expected target version is 2.7, while the tsconfig target is set to a different version.
To fix this issue, you can do the following:
1. Open the tsconfig.json/jsconfig.json file in your project.
2. Add a "vueCompilerOptions" object if it doesn't exist already.
3. Inside the "vueCompilerOptions" object, add a "target" property and set it to "es2018" or any other version that matches the expected target version (2.7 in this case).
Here's an example of what the updated tsconfig.json/jsconfig.json file might look like:
```
{
"compilerOptions": {
// your existing compiler options
},
"vueCompilerOptions": {
"target": "es2018"
}
}
```
Once you've made these changes, try running your application again to see if the issue has been resolved.