❗ 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 16:58:47 浏览: 70
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.
相关推荐
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![ini](https://img-home.csdnimg.cn/images/20210720083646.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![tar](https://img-home.csdnimg.cn/images/20210720083646.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![tar](https://img-home.csdnimg.cn/images/20210720083646.png)