Skip to content

Crashing in ts-morph: Uncaught (in promise) RangeError: Maximum call stack size exceeded #429

Description

@UppaJung

DNT crashing and see no way to debug. Spent lots of time tweaking my code in hopes it would help, but the build process is quite opaque and I have no idea what's causing the problem.

https://github.com/UppaJung/hardy-har/tree/dnt-fails

deno task build-npm

[dnt] Running npm install...

added 24 packages, and audited 25 packages in 2s

found 0 vulnerabilities
[dnt] Building project...
[dnt] Type checking ESM...
[dnt] Emitting ESM package...
error: Uncaught (in promise) RangeError: Maximum call stack size exceeded
  [269 /* CaseBlock */]: function forEachChildInCaseBlock(node, cbNode, cbNodes) {
                                                         ^
    at forEachChildInCaseBlock (https://jsr.io/@ts-morph/common/0.24.0/typescript.js:31968:58)
    at forEachChild (https://jsr.io/@ts-morph/common/0.24.0/typescript.js:32228:35)
    at traverse (https://jsr.io/@ts-morph/common/0.24.0/typescript.js:17735:16)
    at visitNode2 (https://jsr.io/@ts-morph/common/0.24.0/typescript.js:31707:18)
    at forEachChildInSwitchStatement (https://jsr.io/@ts-morph/common/0.24.0/typescript.js:31966:51)
    at forEachChild (https://jsr.io/@ts-morph/common/0.24.0/typescript.js:32228:35)
    at traverse (https://jsr.io/@ts-morph/common/0.24.0/typescript.js:17735:16)
    at visitNodes (https://jsr.io/@ts-morph/common/0.24.0/typescript.js:31715:22)
    at forEachChildInBlock (https://jsr.io/@ts-morph/common/0.24.0/typescript.js:32185:10)
    at forEachChild (https://jsr.io/@ts-morph/common/0.24.0/typescript.js:32228:35)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions