Skip to content
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

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

Open
UppaJung opened this issue Sep 23, 2024 · 0 comments

Comments

@UppaJung
Copy link

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant