ERROR: Expected null or instance of Node, got an instance of Node
Resolved 💬 4 comments Opened Mar 5, 2026 by IanVand Closed Apr 12, 2026
Bug Report
Error Message
ERROR Expected null or instance of Node, got an instance of Node
Stack Trace
file:///C:/Users/iwheeler/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:303:98625
Error.<anonymous> (file:///…/cli.js:303:98625)
<anonymous> (file:///…/cli.js:303:98451)
z6 (file:///…/cli.js:304:258)
qA (file:///…/cli.js:304:3690)
GA.pA (file:///…/cli.js:304:5246)
Z1.insertChild (file:///…/cli.js:304:6750)
x58.insertChild (file:///…/cli.js:304:31075)
u58 (file:///…/cli.js:304:36300)
Zp (file:///…/cli.js:290:64981)
Zp (file:///…/cli.js:290:65080)
Environment
- OS: Windows 11 Enterprise 10.0.26100
- Shell: Git Bash
- Claude Code installed via: npm (global)
- Install path:
C:\Users\iwheeler\AppData\Roaming\npm\node_modules\@anthropic-ai\claude-code
Description
This error occurred during a normal Claude Code session. The stack trace points to insertChild calls in the CLI's rendering layer (likely Ink/React terminal UI), suggesting a rendering issue where a Node instance from one context is being passed to another context that doesn't recognize it.
The error is not actionable from the user side — it appears to be an internal rendering bug.
Steps to Reproduce
The error occurred during a standard interactive session. No specific reproduction steps identified — it appeared spontaneously.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗