We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3866a50 commit 4dc3cd3Copy full SHA for 4dc3cd3
src/compiler/program.ts
@@ -2549,7 +2549,7 @@ namespace ts {
2549
createDiagnosticForOptionName(Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy, "resolveJsonModule");
2550
}
2551
// Any emit other than common js is error
2552
- else if (options.module !== undefined && options.module !== ModuleKind.CommonJS) {
+ else if (getEmitModuleKind(options) !== ModuleKind.CommonJS) {
2553
createDiagnosticForOptionName(Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs, "resolveJsonModule", "module");
2554
2555
0 commit comments