Skip to content

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

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

Closed
atewhs0323 opened this issue Sep 21, 2021 · 2 comments
Closed

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

atewhs0323 opened this issue Sep 21, 2021 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@atewhs0323
Copy link

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

TypeScript Version: 4.5.0-dev.20210920

Steps to reproduce crash
1.
2.
3.

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 (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:56035:22)
    at getPropertyOfType (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:56685:24)
    at tryGetQualifiedNameAsValue (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:48562:26)
    at resolveEntityName (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:48619:133)
    at getSymbolOfPartOfRightHandSideOfImportEquals (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:48542:24)
    at getTargetOfImportEqualsDeclaration (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:48011:28)
    at getTargetOfAliasDeclaration (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:48361:28)
    at resolveAlias (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:48410:30)
    at resolveSymbol (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:48400:67)
    at mergeSymbol (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:46772:42)
    at /Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:46887:47
    at Map.forEach (<anonymous>)
    at mergeSymbolTable (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:46885:20)
    at mergeSymbol (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:46796:21)
    at /Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:46887:47
    at Map.forEach (<anonymous>)
    at mergeSymbolTable (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:46885:20)
    at initializeTypeChecker (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:83624:21)
    at Object.createTypeChecker (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:46549:9)
    at Object.getTypeChecker (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:112744:79)
    at synchronizeHostData (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:157391:21)
    at Object.getProgram (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:157512:13)
    at AutoImportProviderProject.Project.updateGraphWorker (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:162519:53)
    at AutoImportProviderProject.Project.updateGraph (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:162448:42)
    at AutoImportProviderProject.updateGraph (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:163293:70)
    at Object.updateProjectIfDirty (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:163930:45)
    at ConfiguredProject.Project.getPackageJsonAutoImportProvider (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:163068:32)
    at ConfiguredProject.Project.updateGraph (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:162486:26)
    at ConfiguredProject.updateGraph (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:163441:63)
    at ProjectService.createLoadAndUpdateConfiguredProject (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:165165:25)
    at ProjectService.assignProjectToOpenedScriptInfo (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:166248:44)
    at /Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:166588:97
    at Object.flatMap (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:519:25)
    at ProjectService.applyChangesInOpenFiles (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:166588:41)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:167746:46)
    at /Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:169677:88
    at IOSession.Session.executeWithRequestId (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:169668:28)
    at IOSession.Session.executeCommand (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:169677:33)
    at IOSession.Session.onMessage (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:169703:35)
    at Interface.<anonymous> (/Users/shwetatripathi/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210920/node_modules/typescript/lib/tsserver.js:172308: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)
@mjbvz mjbvz transferred this issue from microsoft/vscode Sep 27, 2021
@mjbvz mjbvz removed their assignment Sep 27, 2021
@mjbvz
Copy link
Contributor

mjbvz commented Sep 27, 2021

Stack looks similar to #45871

@andrewbranch andrewbranch added the Duplicate An existing issue was already created label Sep 27, 2021
@typescript-bot
Copy link
Collaborator

This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

4 participants