sách gpt4 ăn đã đi

typescript - Atom-TypeScript - Tại sao các tùy chọn cấu hình Typescript này không được nhận dạng?

In lại 作者:搜寻专家 更新时间:2023-10-30 21:30:55 28 4
mua khóa gpt4 giày nike

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

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

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

nhập mô tả hình ảnh ở đây

câu trả lời hay nhất

compileOnSavebuildOnSave 不在 CompilerOptions 下。像这样:

{
"compileOnSave": true,
"buildOnSave": false,
"Tùy chọn biên dịch": {
"module": "system",
"noImplicitAny": đúng,
"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/

28 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress