diff --git a/packages/language-core/lib/compilerOptions.ts b/packages/language-core/lib/compilerOptions.ts index 7ae177aedb..ee99e1f8e6 100644 --- a/packages/language-core/lib/compilerOptions.ts +++ b/packages/language-core/lib/compilerOptions.ts @@ -18,6 +18,9 @@ export function createParsedCommandLineByJson( json: any, configFileName?: string, ): ParsedCommandLine { + // manually import here, typescript/lib/tsc doesn't include required functionalities below anymore + ts = require('typescript/lib/typescript'); + const extendedPaths = new Set(); const proxyHost = { ...host, @@ -58,6 +61,8 @@ export function createParsedCommandLine( host: ParseConfigHost, configFileName: string, ): ParsedCommandLine { + // manually import here, typescript/lib/tsc doesn't include required functionalities below anymore + ts = require('typescript/lib/typescript'); try { const extendedPaths = new Set(); const proxyHost = {