App.vue Doctor ❗ 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/🌏/vuet9/node_modules/vue/package.json tsconfig: file:///Users/shenglei/Downloads/%F0%9F%8C%8F/vuet9/jsconfig.json vueCompilerOptions: { "extensions": [ ".vue" ] } Have any questions about the report message? You can see how it is composed by inspecting the source code.
时间: 2024-01-14 19:04:37 浏览: 73
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 resolve this issue, you can follow the steps I mentioned earlier to update the tsconfig.json/jsconfig.json file by adding a "vueCompilerOptions" object and setting the "target" property to the expected target version.
In the report message you provided, I can see that the vueCompilerOptions object only contains an "extensions" property with the value of [".vue"]. This means that the "target" property is not set.
To fix this, you can add the "target" property to the vueCompilerOptions object and set it to the expected target version (2.7 in this case). Your updated tsconfig.json/jsconfig.json file should look like this:
```
{
"compilerOptions": {
// your existing compiler options
},
"vueCompilerOptions": {
"target": "es2018",
"extensions": [".vue"]
}
}
```
Make sure to replace "es2018" with the appropriate target version for your project.
Once you've made these changes, try running your application again to see if the issue has been resolved.
阅读全文