diff --git a/src/services/shims.ts b/src/services/shims.ts index 0aa411536f1b6..1c8132793a349 100644 --- a/src/services/shims.ts +++ b/src/services/shims.ts @@ -1064,7 +1064,7 @@ namespace ts { if (resolvedFileName && !compilerOptions.allowJs && fileExtensionIs(resolvedFileName, ".js")) { return { resolvedFileName: undefined, - failedLookupLocations: undefined + failedLookupLocations: [] }; } return {