Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TS Server fatal error: Cannot read property 'flags' of undefined #138943

Closed
dimaslanjaka opened this issue Dec 12, 2021 · 2 comments
Closed

TS Server fatal error: Cannot read property 'flags' of undefined #138943

dimaslanjaka opened this issue Dec 12, 2021 · 2 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@dimaslanjaka
Copy link

dimaslanjaka commented Dec 12, 2021

Issue Type: Bug

❗️❗️❗️ Please fill in the sections below to help us diagnose the issue ❗️❗️❗️

TypeScript Version: 4.5.2

Steps to reproduce crash

  1. Just open folder of https://github.com/dimaslanjaka/dimaslanjaka.github.io/tree/compiler/packages/electron-browser

TS Server Log
❗️Server logging disabled. To help us fix crashes like this, please enable logging by setting:

"typescript.tsserver.log": "verbose"

After enabling this setting, future crash reports will include the server log.

TS Server Error Stack
Server: semantic

TypeError: Cannot read property 'flags' of undefined
    at getPropertyOfObjectType (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:57005:22)
    at getPropertyOfType (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:57665:24)
    at resolveESModuleSymbol (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:49811:54)
    at getTargetOfNamespaceImport (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:48996:28)
    at getTargetOfAliasDeclaration (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:49230:28)
    at resolveAlias (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:49275:30)
    at getSymbol (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:47833:38)
    at resolveNameHelper (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:48125:34)
    at resolveName (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:48108:20)
    at resolveEntityName (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:49447:42)
    at getTargetOfExportSpecifier (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:49187:17)
    at getTargetOfAliasDeclaration (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:49237:28)
    at resolveAlias (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:49275:30)
    at resolveSymbol (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:49265:67)
    at mergeSymbol (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:47619:42)
    at /usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:47734:47
    at Map.forEach (<anonymous>)
    at mergeSymbolTable (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:47732:20)
    at mergeSymbol (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:47643:21)
    at /usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:47734:47
    at Map.forEach (<anonymous>)
    at mergeSymbolTable (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:47732:20)
    at initializeTypeChecker (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:84991:21)
    at Object.createTypeChecker (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:47390:9)
    at Object.getTypeChecker (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:114385:79)
    at synchronizeHostData (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:159863:21)
    at Object.getProgram (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:159984:13)
    at ConfiguredProject.Project.updateGraphWorker (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:164998:53)
    at ConfiguredProject.Project.updateGraph (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:164927:42)
    at ConfiguredProject.updateGraph (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:165920:63)
    at ProjectService.createLoadAndUpdateConfiguredProject (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:167644:25)
    at ProjectService.assignProjectToOpenedScriptInfo (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:168727:44)
    at /usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:169067:97
    at Object.flatMap (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:522:25)
    at ProjectService.applyChangesInOpenFiles (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:169067:41)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:170225:46)
    at /usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:172158:88
    at IOSession.Session.executeWithRequestId (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:172149:28)
    at IOSession.Session.executeCommand (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:172158:33)
    at IOSession.Session.onMessage (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:172184:35)
    at Interface.<anonymous> (/usr/share/code/resources/app/extensions/node_modules/typescript/lib/tsserver.js:174789:31)
    at Interface.emit (events.js:315:20)
    at Interface._onLine (readline.js:337:10)
    at Interface._normalWrite (readline.js:482:12)
    at Socket.ondata (readline.js:194:10)
    at Socket.emit (events.js:315:20)
    at addChunk (internal/streams/readable.js:309:12)
    at readableAddChunk (internal/streams/readable.js:284:9)
    at Socket.Readable.push (internal/streams/readable.js:223:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:188:23)
@gjsjohnmurray
Copy link
Contributor

/duplicate of #138794

@github-actions github-actions bot locked and limited conversation to collaborators Jan 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

4 participants
@gjsjohnmurray @dimaslanjaka @mjbvz and others