The Vue Language Features (Volar) version is 1.0.8, but workspace vue-tsc version is 0.40.13, there may have different type checking behavior.
vue-tsc: e:\store\learnvue\firstvue\node_modules\vue-tsc\package.json
安装vscode的Volar插件出现以上报错
npm i -D vue-tsc@latest
- 运行安装最新的vue-tsc之后重启vscode,报错消失