Skip to content

Maximum call stack size exceeded crash for unknown causes #3095

@mkahvi

Description

@mkahvi

Search terms

Maximum call stack size exceeded

Expected Behavior

No crash.

Actual Behavior

TypeDoc exiting with unexpected error:
RangeError: Maximum call stack size exceeded
    at instantiateTypeWorker (...\node_modules\typescript\lib\typescript.js:68232:33)
    at instantiateTypeWithAlias (...\node_modules\typescript\lib\typescript.js:68223:20)
    at instantiateType (...\node_modules\typescript\lib\typescript.js:68191:29)
    at instantiateTypeWorker (...\node_modules\typescript\lib\typescript.js:68276:9)
    at instantiateTypeWithAlias (...\node_modules\typescript\lib\typescript.js:68223:20)
    at instantiateType (...\node_modules\typescript\lib\typescript.js:68191:29)
    at getTypeOfMappedSymbol (...\node_modules\typescript\lib\typescript.js:63107:24)
    at getTypeOfSymbol (...\node_modules\typescript\lib\typescript.js:61477:14)
    at getNonMissingTypeOfSymbol (...\node_modules\typescript\lib\typescript.js:61500:30)
    at addPropertyToElementList (...\node_modules\typescript\lib\typescript.js:56752:97)

Steps to reproduce the bug

Update to 0.28.18 or later? Works fine in 0.28.17.

The commit that started crashing only added some uses of Pick<> defining a type and added @extends use for a class in JSdoc. The project uses TS mostly for type augmentation and doc generation.

Environment

  • TypeDoc version: 0.28.18 – 0.28.19
  • TypeScript version: 5.5.4 ? (uncertain what version CI uses)
  • Node.js version: v22.22.2 on CI side, v24.14.1 locally
  • OS: any (seeing on both Windows and in Linux running CI)

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs minimal reproductionNeeds a minimal repro - https://gist.github.com/Rich-Harris/88c5fc2ac6dc941b22e7996af05d70ff

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions