Skip to content

Internal typescript error with no useful information #8961

Closed
@anstosa

Description

@anstosa

I'm trying to compile an existing codebase and getting an error message with no useful context at all and which doesn't reference any of my code. Any pointers here?

Using tsc v1.8.10
/usr/lib64/extrahop_node_modules/node_modules/typescript/lib/tsc.js:33078
                throw e;
                      ^
TypeError: Cannot read property 'id' of undefined
    at getNodeId (/usr/lib64/extrahop_node_modules/node_modules/typescript/lib/tsc.js:11646:18)
    at getNodeLinks (/usr/lib64/extrahop_node_modules/node_modules/typescript/lib/tsc.js:12007:26)
    at checkExpressionCached (/usr/lib64/extrahop_node_modules/node_modules/typescript/lib/tsc.js:20308:25)
    at /usr/lib64/extrahop_node_modules/node_modules/typescript/lib/tsc.js:13842:107
    at Object.map (/usr/lib64/extrahop_node_modules/node_modules/typescript/lib/tsc.js:163:29)
    at getTypeOfVariableOrParameterOrProperty (/usr/lib64/extrahop_node_modules/node_modules/typescript/lib/tsc.js:13842:57)
    at getTypeOfSymbol (/usr/lib64/extrahop_node_modules/node_modules/typescript/lib/tsc.js:13958:24)
    at writeLiteralType (/usr/lib64/extrahop_node_modules/node_modules/typescript/lib/tsc.js:13281:33)
    at writeAnonymousType (/usr/lib64/extrahop_node_modules/node_modules/typescript/lib/tsc.js:13176:25)
    at writeType (/usr/lib64/extrahop_node_modules/node_modules/typescript/lib/tsc.js:13064:25)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs More InfoThe issue still hasn't been fully clarified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions