gpt4 book ai didi

typescript - atom-typescript - 为什么无法识别这些 Typescript 配置选项?

转载 作者:搜寻专家 更新时间:2023-10-30 21:30:55 27 4
gpt4 key购买 nike

为什么我会收到下面屏幕截图中显示的错误?

Atom 说我的 tsconfig.json“项目文件包含无效选项”用于 allowJs、buildOnSave 和 compileOnSave。

但是应该允许这些设置:https://github.com/TypeStrong/atom-typescript/blob/master/docs/tsconfig.md

enter image description here

最佳答案

compileOnSavebuildOnSave 不在 CompilerOptions 下。像这样:

{
"compileOnSave": true,
"buildOnSave": false,
"compilerOptions": {
"module": "system",
"noImplicitAny": true,
"preserveConstEnums": true,
"removeComments": true,
"sourceMap": true,
"target": "es5"
},
"exclude": [
"node_modules",
"wwwroot/lib",
"typings/main",
"typings/main.d.ts"
]
}

似乎不支持 allowJs,但很快就会支持。这是 GitHub 上的一个分支, 表明他们已经添加了它,只是还没有合并它。

关于typescript - atom-typescript - 为什么无法识别这些 Typescript 配置选项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36725567/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com