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
时间: 2023-07-31 16:07:33 浏览: 50
这个警告信息意味着您在使用Vue编译器时指定了一个错误的目标版本。您可以在 `tsconfig.json` 或 `jsconfig.json` 文件中通过设置 `vueCompilerOptions.target` 来指定正确的目标版本。
根据您提供的信息,您的Vue版本为2.7.14,但是您的 `tsconfig.json` 文件中默认的目标版本为3。这可能会导致一些不兼容的问题。
您可以在 `tsconfig.json` 文件中手动将 `target` 设置为2.7,如下所示:
```
{
"compilerOptions": {
"target": "es5",
// 其他选项
}
}
```
或者,在 `jsconfig.json` 文件中添加 `vueCompilerOptions`,如下所示:
```
{
"compilerOptions": {
// 其他选项
},
"vueCompilerOptions": {
"target": "2.7"
}
}
```
通过这些更改,您可以解决这个警告信息并确保正确的编译器版本。
相关问题
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:
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 3 (default).
To fix this issue, you can specify the target version in the vueCompilerOptions.target in tsconfig.json/jsconfig.json to match the expected target version. For example, you can set the target version to 2.7 in the tsconfig.json/jsconfig.json file by adding the following line:
```
"compilerOptions": {
"target": "es2016"
},
```
Make sure to replace "es2016" with the appropriate target version for your project.
Once you have made this change, try running the application again to see if the issue has been resolved.