【问题标题】:Why are the TypeScript compilerOptions 'noEmitOnError: true' and 'isolatedModules: false' not compatible?为什么 TypeScript compilerOptions 'noEmitOnError: true' 和 'isolatedModules: false' 不兼容?
【发布时间】:2019-04-17 11:44:13
【问题描述】:

当我使用 isolatedModules true 和 isolatedModules false 运行 TypeScript 时,我收到此错误:

tsconfig.json(5,9): error TS5053: Option 'noEmitOnError' cannot be specified with option 'isolatedModules'.

为什么??

示例 tsconfig:

{
    "compilerOptions": {
        "noEmitOnError": true,
        "isolatedModules": true,
    }
}

【问题讨论】:

标签: typescript tsconfig compiler-options


【解决方案1】:

显然限制是一个错误。 固定在主人身上!:https://github.com/Microsoft/TypeScript/pull/31043

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-02-09
    • 1970-01-01
    • 2015-02-22
    • 2015-10-03
    • 2013-09-18
    • 2014-11-05
    • 2015-03-22
    • 1970-01-01
    相关资源
    最近更新 更多