Skip to content

Debug Failure. False expression: JsxText tokens should not be the first child of JsxElement | JsxSelfClosingElement in findRightmostChildNodeWithTokens during getQuickInfoAtPosition #20788

@aozgaa

Description

@aozgaa

tsserver version: 2.6.1
hitting sessions: 6483
stack:

Error: Debug Failure. False expression: `JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement` at findRightmostChildNodeWithTokens (tsserver.js:62901:30) at find (tsserver.js:62893:33) at findPrecedingToken (tsserver.js:62859:22) at getTokenAtPositionWorker (tsserver.js:62822:41) at getTouchingToken (tsserver.js:62794:16) at Object.getTouchingPropertyName (tsserver.js:62790:16) at Object.getQuickInfoAtPosition (tsserver.js:79791:27) at IOSession.Session.getQuickInfoWorker (tsserver.js:86102:62) at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (tsserver.js:85266:61) at tsserver.js:86669:88 at IOSession.Session.executeWithRequestId (tsserver.js:86660:28) at IOSession.Session.executeCommand (tsserver.js:86669:33) at IOSession.Session.onMessage (tsserver.js:86689:35) at Interface.<anonymous> (tsserver.js:87881:27) at emitOne (events.js:96:13) at Interface.emit (events.js:191:7) at Interface._onLine (readline.js:241:10) at Interface._normalWrite (readline.js:384:12) at Socket.ondata (readline.js:101:10) at emitOne (events.js:96:13) at Socket.emit (events.js:191:7) at readableAddChunk (_stream_readable.js:178:18) at Socket.Readable.push (_stream_readable.js:136:10) at Pipe.onread (net.js:560:20) 

Metadata

Metadata

Labels

BugA bug in TypeScriptNeeds More InfoThe issue still hasn't been fully clarifiedSource: TelemetryThe issue relates to the telemetry in editors

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions