Skip to content

Commit 45f9370

Browse files
author
Benjamin Lichtman
committed
Handle installed package missing from registry
1 parent f8503f2 commit 45f9370

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/services/jsTyping.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ namespace ts.JsTyping {
160160
}
161161
// Add the cached typing locations for inferred typings that are already installed
162162
packageNameToTypingLocation.forEach((typing, name) => {
163-
if (inferredTypings.has(name) && inferredTypings.get(name) === undefined && isTypingUpToDate(typing, typesRegistry.get(name)!)) {
163+
if (inferredTypings.has(name) && inferredTypings.get(name) === undefined && typesRegistry.has(name) && isTypingUpToDate(typing, typesRegistry.get(name)!)) {
164164
inferredTypings.set(name, typing.typingLocation);
165165
}
166166
});

0 commit comments

Comments
 (0)