Skip to content

Cannot read property 'getTypeChecker' of undefined at watchFailedLookupLocationOfNonRelativeModuleResolutions #25765

@cevek

Description

@cevek

TypeScript Version: 3.0.0-dev.20180712

Search Terms:

Code

TypeError: Cannot read property 'getTypeChecker' of undefined
    at watchFailedLookupLocationOfNonRelativeModuleResolutions (/usr/local/lib/node_modules/typescript/lib/tsserver.js:85583:70)
    at Map.forEach (native)
    at Object.clearPerDirectoryResolutions [as startCachingPerDirectoryResolution] (/usr/local/lib/node_modules/typescript/lib/tsserver.js:85338:50)
    at ConfiguredProject.Project.updateGraphWorker (/usr/local/lib/node_modules/typescript/lib/tsserver.js:115350:38)
    at ConfiguredProject.Project.updateGraph (/usr/local/lib/node_modules/typescript/lib/tsserver.js:115299:42)
    at ConfiguredProject.updateGraph (/usr/local/lib/node_modules/typescript/lib/tsserver.js:115669:61)
    at ConfiguredProject.Project.getLanguageService (/usr/local/lib/node_modules/typescript/lib/tsserver.js:115005:26)
    at IOSession.Session.getApplicableRefactors (/usr/local/lib/node_modules/typescript/lib/tsserver.js:119171:32)
    at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (/usr/local/lib/node_modules/typescript/lib/tsserver.js:118117:61)
    at /usr/local/lib/node_modules/typescript/lib/tsserver.js:119389:88
    at IOSession.Session.executeWithRequestId (/usr/local/lib/node_modules/typescript/lib/tsserver.js:119380:28)
    at IOSession.Session.executeCommand (/usr/local/lib/node_modules/typescript/lib/tsserver.js:119389:33)
    at IOSession.Session.onMessage (/usr/local/lib/node_modules/typescript/lib/tsserver.js:119409:35)
    at Interface.<anonymous> (/usr/local/lib/node_modules/typescript/lib/tsserver.js:120676:27)

Expected behavior:

Actual behavior:

Playground Link:

Related Issues:

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions