dnt icon indicating copy to clipboard operation
dnt copied to clipboard

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

Open UppaJung opened this issue 1 year ago • 0 comments

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)

UppaJung avatar Sep 23 '24 20:09 UppaJung