Crashing in ts-morph: Uncaught (in promise) RangeError: Maximum call stack size exceeded
- Dominant language
- Rust
- Stars
- 1.3k
- Forks
- 49
- PR merge metrics
- No merged PRs in 30d
Description
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
```bash
[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)
```
Contributor guide
Assessment
This issue has not been assessed yet.