#35061·nx

Nx 22.6.3 crashes with stack overflow on Node 25 + Windows when running any command in workspace

Author: kamiletarCreated Mar 28, 2026Updated Sep 27, 2026
Labelstype: bugscope: corestalepriority: low

Current Behavior

After upgrading from Nx 22.6.1 to 22.6.3, all Nx commands crash silently when run inside a workspace with node_modules. The process exits with code 127 (bash) / -1073741571 aka 0xC00000FD (STATUS_STACK_OVERFLOW on Windows).

nx --version works fine (handled before native addon loads), but any command that triggers project graph creation (nx show projects, nx run-many, nx reset, etc.) crashes immediately with no output to stdout or stderr.

Global nx --version works. Local workspace commands do not.

Expected Behavior

Nx commands should work the same as in 22.6.1.

Steps to Reproduce

  1. Windows 11, Node.js v25.2.1, Bun 1.3.11 (package manager)
  2. Have [email protected] and @nx/*@22.6.3 in package.json
  3. Run bun install (or npm install)
  4. Run nx show projects — silent crash, exit code 127

Debugging Details

Exit code is STATUS_STACK_OVERFLOW

PowerShell confirms the Windows exit code:

> Start-Process -FilePath 'node' -ArgumentList 'node_modules/nx/bin/nx.js','show','projects' -Wait -PassThru
ExitCode: -1073741571  # 0xC00000FD = STATUS_STACK_OVERFLOW

Bun runtime gives a clearer error

> bun node_modules/nx/bin/nx.js show projects

panic(main thread): Stack overflow
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

Programmatic API confirms plugin workers crash

javascript
process.env.NX_DAEMON = 'false';
const { createProjectGraphAsync } = require('nx/src/project-graph/project-graph');
createProjectGraphAsync().catch(e => console.error(e.message));

Output:

Failed to load 2 default Nx plugin(s):
  - ...\nx\src\plugins\js: Plugin worker "..." exited unexpectedly.
  - ...\nx\src\plugins\project-json\build-nodes\project-json: Plugin worker "..." exited unexpectedly.
Failed to load 6 Nx plugin(s):
  - @nx/js/typescript: Plugin worker "..." exited unexpectedly.
  - @nx/next/plugin: Plugin worker "..." exited unexpectedly.
  - @nx/eslint/plugin: Plugin worker "..." exited unexpectedly.
  - @nx/playwright/plugin: Plugin worker "..." exited unexpectedly.
  - @nx/vitest: Plugin worker "..." exited unexpectedly.

Native addon loads fine in isolation

javascript
const addon = require('@nx/nx-win32-x64-msvc');
console.log(Object.keys(addon)); // works, lists all exports
addon.transferProjectGraph(JSON.stringify({nodes:{},dependencies:{}})); // works

Nx 22.6.1 works perfectly

Same machine, same Node.js, same project — pinning all @nx/* to 22.6.1 resolves the issue completely. Both first and subsequent calls work with daemon enabled.

Environment

  • Nx: 22.6.3 (crashes) / 22.6.1 (works)
  • Node: v25.2.1
  • OS: Windows 11 (10.0.26200)
  • Package manager: Bun 1.3.11
  • Native addon: @nx/[email protected]

Workaround

Pin Nx to 22.6.1 in package.json:

json
"nx": "22.6.1",
"@nx/devkit": "22.6.1",
"@nx/js": "22.6.1",
...