diff --git a/src/compiler/tsbuildPublic.ts b/src/compiler/tsbuildPublic.ts index 2a2b39cee82..ec2097dd955 100644 --- a/src/compiler/tsbuildPublic.ts +++ b/src/compiler/tsbuildPublic.ts @@ -849,6 +849,7 @@ namespace ts { state.projectCompilerOptions = config.options; // Update module resolution cache if needed state.moduleResolutionCache?.update(config.options); + state.typeReferenceDirectiveResolutionCache?.update(config.options); // Create program program = host.createProgram(