denoland / denoland/dnt

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

Open
#429 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.