Why are the TypeScript compilerOptions 'noEmitOnError: true' and 'isolatedModules: false' not compatible?
Why are the TypeScript compilerOptions 'noEmitOnError: true' and 'isolatedModules: false' not compatible?
当我 运行 使用 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,
}
}
显然限制是错误的。
已修复 master!: https://github.com/Microsoft/TypeScript/pull/31043
当我 运行 使用 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,
}
}
显然限制是错误的。 已修复 master!: https://github.com/Microsoft/TypeScript/pull/31043