tsconfig.json文件报错JSON schema for the TypeScript compiler‘s configuration file

报错内容
JSON schema for the TypeScript compiler’s configuration file

无法写入文件“d:/Vue20220813/Code/webclient/src/vuex/store.js”,因为它会覆盖输入文件。ts


报错如图
在这里插入图片描述


解决方案

在tsconfig.json文件的配置中添加配置保存以后问题就解决了

"compilerOptions": {
	"outDir":"./",
},
"exclude": [
	"node_modules",
	"dist"
]
  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
Here is a possible JSON schema for the TypeScript compiler's configuration file: ```json { "$schema": "http://json-schema.org/draft-07/schema#", "title": "TypeScript Compiler Configuration", "type": "object", "properties": { "compilerOptions": { "type": "object", "properties": { "allowJs": { "type": "boolean" }, "checkJs": { "type": "boolean" }, "noEmit": { "type": "boolean" }, "noEmitOnError": { "type": "boolean" }, "strict": { "type": "boolean" }, "target": { "type": ["string", "number"], "enum": ["ES3", "ES5", "ES6", "ES2015", "ES2016", "ES2017", "ES2018", "ES2019", "ES2020", "ES2021", "ESNext"] }, "module": { "type": ["string", "number"], "enum": ["CommonJS", "AMD", "System", "UMD", "ES6", "ES2015", "ES2020", "ESNext"] }, "outFile": { "type": "string" }, "outDir": { "type": "string" }, "rootDir": { "type": "string" }, "baseUrl": { "type": "string" }, "paths": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } } }, "typeRoots": { "type": "array", "items": { "type": "string" } }, "types": { "type": "array", "items": { "type": "string" } }, "lib": { "type": "array", "items": { "type": "string" } }, "experimentalDecorators": { "type": "boolean" }, "emitDecoratorMetadata": { "type": "boolean" } }, "additionalProperties": false }, "include": { "type": "array", "items": { "type": "string" } }, "exclude": { "type": "array", "items": { "type": "string" } } }, "required": ["compilerOptions"], "additionalProperties": false } ``` This schema defines an object with three properties: `compilerOptions`, `include`, and `exclude`. The `compilerOptions` property is itself an object with various properties for configuring the TypeScript compiler, such as `allowJs`, `checkJs`, `noEmit`, `strict`, etc. The other two properties, `include` and `exclude`, are arrays of file patterns to include or exclude from compilation. The schema includes type validations and some additional constraints, such as allowed values for `target` and `module`.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值