claude-code - 💡(How to fix) Fix [BUG] v2.1.120 — (fix inside) ERROR g9H is not a function. (In 'g9H(K)', 'g9H' is undefined) [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#53079Fetched 2026-04-25 06:12:55
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
2
Author
Timeline (top)
labeled ×4commented ×1cross-referenced ×1renamed ×1

Error Message

ERROR g9H is not a function. (In 'g9H(K)', 'g9H' is undefined)

/$bunfs/root/src/entrypoints/cli.js:9251:5663

9248: ${K.join( 9249: ... ... 9252: Error: sandbox required but unavailable: ${f_} 9253:+` sandbox.failIfUnavailable is set \u2014 refusing to start without a working sandbox. 9254:

  • <anonymous> (/$bunfs/root/src/entrypoints/cli.js:9251:5663)
  • WC (/$bunfs/root/src/entrypoints/cli.js:492:63749)
  • pj (/$bunfs/root/src/entrypoints/cli.js:492:76948)
  • fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
  • pj (/$bunfs/root/src/entrypoints/cli.js:492:77745)
  • fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
  • pj (/$bunfs/root/src/entrypoints/cli.js:492:76926)
  • fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
  • pj (/$bunfs/root/src/entrypoints/cli.js:492:77745)
  • fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
  • async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:18808:11089)

Code Example

ERROR  g9H is not a function. (In 'g9H(K)', 'g9H' is undefined)

 /$bunfs/root/src/entrypoints/cli.js:9251:5663

 9248: ${K.join(`
 9249: ...
...
 9252: Error: sandbox required but unavailable: ${f_}
 9253: `+`  sandbox.failIfUnavailable is set \u2014 refusing to start without a working sandbox.
 9254:

 - <anonymous> (/$bunfs/root/src/entrypoints/cli.js:9251:5663)
 - WC (/$bunfs/root/src/entrypoints/cli.js:492:63749)
 - pj (/$bunfs/root/src/entrypoints/cli.js:492:76948)
 - fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
 - pj (/$bunfs/root/src/entrypoints/cli.js:492:77745)
 - fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
 - pj (/$bunfs/root/src/entrypoints/cli.js:492:76926)
 - fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
 - pj (/$bunfs/root/src/entrypoints/cli.js:492:77745)
 - fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
 - async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:18808:11089)

---
RAW_BUFFERClick to expand / collapse

TEMP FIX:

open claude normal, type /resume

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Shipping on a fucking Friday at five fucking PM... come on guys.

Crashes on argument --resume or --continue

 ERROR  g9H is not a function. (In 'g9H(K)', 'g9H' is undefined)

 /$bunfs/root/src/entrypoints/cli.js:9251:5663

 9248: ${K.join(`
 9249: ...
...
 9252: Error: sandbox required but unavailable: ${f_}
 9253: `+`  sandbox.failIfUnavailable is set \u2014 refusing to start without a working sandbox.
 9254:

 - <anonymous> (/$bunfs/root/src/entrypoints/cli.js:9251:5663)
 - WC (/$bunfs/root/src/entrypoints/cli.js:492:63749)
 - pj (/$bunfs/root/src/entrypoints/cli.js:492:76948)
 - fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
 - pj (/$bunfs/root/src/entrypoints/cli.js:492:77745)
 - fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
 - pj (/$bunfs/root/src/entrypoints/cli.js:492:76926)
 - fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
 - pj (/$bunfs/root/src/entrypoints/cli.js:492:77745)
 - fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
 - async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:18808:11089)

What Should Happen?

TUI starts

Error Messages/Logs

Steps to Reproduce

start claude on Mac, latest

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.119

Claude Code Version

2.1.120

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue can likely be temporarily fixed by opening Claude normally and typing /resume instead of using the --resume or --continue arguments.

Guidance

  • The error message suggests that the g9H function is undefined, which may indicate a problem with the latest version of Claude Code (2.1.120).
  • To verify the issue, try reproducing the error by running Claude with the --resume or --continue arguments on a Mac with the latest version.
  • As a temporary workaround, try opening Claude normally and typing /resume to see if it bypasses the error.
  • The fact that this worked in a previous version (2.1.119) suggests that the issue may be a regression, and reverting to the previous version might also resolve the issue.

Notes

The provided stacktrace and error message do not give a clear indication of the root cause, so these suggestions are based on the information given and may not fully resolve the issue.

Recommendation

Apply workaround: given the temporary fix provided in the issue (open claude normal, type /resume), it seems like using this method can bypass the error, at least until a more permanent fix is available.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] v2.1.120 — (fix inside) ERROR g9H is not a function. (In 'g9H(K)', 'g9H' is undefined) [1 comments, 2 participants]