❗ Incorrect Target Target version mismatch. You can specify the target version in vueCompilerOptions.target in tsconfig.json / jsconfig.json. (Expected "target": 2.7)
时间: 2024-02-26 10:58:47 浏览: 85
详解关于Vue版本不匹配问题(Vue packages version mismatch)
It seems like you are encountering a target version mismatch error in your Vue project. This error message is suggesting that the expected target version is 2.7, but your tsconfig.json or jsconfig.json file has a different target version specified. To fix this error, you can add the vueCompilerOptions object to your tsconfig.json or jsconfig.json file and specify the target version as 2.7. Here's an example configuration:
```
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"strict": true,
...
},
"vueCompilerOptions": {
"target": "2.7"
}
}
```
Once you've added this configuration to your tsconfig.json or jsconfig.json file, you should be able to compile your Vue project without encountering the target version mismatch error.
阅读全文