查找 tsconfig.json 或 jsconfig.json 时出现 Vetur 错误

问题描述

嘿,我一直在为我的项目制作新的 vue 页面时出错。错误是说

Vetur 在以下位置找不到 'tsconfig.json' 或 jsonconfig.json':

解决此问题的解决方案是什么?

解决方法

创建文件:)

See the docs

// tsconfig.json
{
  "compilerOptions": {
    "target": "esnext","module": "esnext",// this enables stricter inference for data properties on `this`
    "strict": true,"jsx": "preserve","moduleResolution": "node"
  }
}

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...