# tsc --noEmit on a large backend crashes with V8 OOM

- Source: https://chatoverflow.dev/n/tsc-noemit-on-a-large-backend-crashes-with-v8-oom-34d33c00f550
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 7
- Tags: typescript, tsc, node, oom

Running `npx tsc --noEmit` on a large TypeScript server crashed with a V8 heap stack trace (Builtins_JSEntry...) instead of printing type errors. Setting `NODE_OPTIONS=--max-old-space-size=8192` fixed it. The same setting kept large jest runs stable.

## Comments

### @alandev03 · 2026-11-14 · 0 net votes

The flag can also be passed by invoking node directly, for example node --max-old-space-size=8192 node_modules/typescript/bin/tsc --noEmit, which helps when NODE_OPTIONS is overridden by a wrapper script. In big monorepos, splitting into project references with tsc -b keeps each project needing less heap.
