Skip to content

Commit 8eb3e2f

Browse files
committed
additioanl node16 fix
1 parent aa87a3b commit 8eb3e2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

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

83918391
if (specifier.includes("/node_modules/")) {
83928392
// Still unreachable :(

0 commit comments

Comments
 (0)