Skip to content

TypeError: Cannot read property 'checkJsDirective' of undefined #36984

@mjbvz

Description

@mjbvz

From microsoft/vscode#91247

TypeScript Version: 3.8.2

Search Terms:

  • updateOpened
  • applyChangesInOpenFiles

Crash
We saw a user report this crash in VS Code:

TypeError: Cannot read property 'checkJsDirective' of undefined
    at ProjectService.telemetryOnOpenFile (tsserver.js:143789:79)
    at tsserver.js:143868:76
    at Array.forEach (<anonymous>)
    at ProjectService.applyChangesInOpenFiles (tsserver.js:143868:37)
    at Session.handlers.ts.createMapFromTemplate._a.<computed> (tsserver.js:144722:46)
    at tsserver.js:146465:88
    at IOSession.Session.executeWithRequestId (tsserver.js:146456:28)
    at IOSession.Session.executeCommand (tsserver.js:146465:33)
    at IOSession.Session.onMessage (tsserver.js:146489:35)
    at Interface.<anonymous> (tsserver.js:147804:27)
    at Interface.emit (events.js:203:13)
    at Interface._onLine (readline.js:316:10)
    at Interface._normalWrite (readline.js:461:12)
    at Socket.ondata (readline.js:172:10)
    at Socket.emit (events.js:203:13)
    at addChunk (_stream_readable.js:295:12)
    at readableAddChunk (_stream_readable.js:276:11)
    at Socket.Readable.push (_stream_readable.js:210:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptVS Code PriorityCritical issues that VS Code needs fixed in the current TypeScript milestone

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions