Skip to content

Commit 14ef15a

Browse files
committed
additioanl node16 fix
1 parent 9bb806f commit 14ef15a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8419,7 +8419,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
84198419
if (getEmitModuleResolutionKind(compilerOptions) === ModuleResolutionKind.Node16 || getEmitModuleResolutionKind(compilerOptions) === ModuleResolutionKind.NodeNext) {
84208420
// We might be able to write a portable import type using a mode override; try specifier generation again, but with a different mode set
84218421
const swappedMode = contextFile?.impliedNodeFormat === ModuleKind.ESNext ? ModuleKind.CommonJS : ModuleKind.ESNext;
8422-
specifier = getSpecifierForModuleSymbol(chain[0], context, swappedMode);
8422+
specifier = getSpecifierForModuleSymbolSpecial(chain[0], context, swappedMode);
84238423

84248424
if (specifier.includes("/node_modules/")) {
84258425
// Still unreachable :(

0 commit comments

Comments
 (0)