[Bug] React Error #185: Invalid Hook Call in CLI Component

Resolved 💬 4 comments Opened Jan 11, 2026 by Davejavu4u Closed Jan 15, 2026

Bug Description
Error: Minified React error #185; visit https://react.dev/errors/185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at w6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:733:16255)
at $2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:733:15768)
at S7 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:733:31879)
at M2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:733:31478)
at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2873:2491
at $A (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3314:559)
at onInput (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2859:8200)
at Object.wtayoudcreatetonatheuscreen would:restpinhthere.wButbalsoeyoudcould@haverUXielementsuthatocouldibesused9to0design interface screens
at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:863:2516
at Xa.J (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:863:3364)

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.4
  • Feedback ID: a13ca137-8d19-4236-8a2f-fb20c9d0ddea

Errors

[{"error":"Error: LSP server plugin:rust-analyzer-lsp:rust-analyzer crashed with exit code 1\n    at ChildProcess.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2140:21508)\n    at ChildProcess.emit (node:events:508:28)\n    at ChildProcess.emit (node:domain:489:12)\n    at ChildProcess._handle.onexit (node:internal/child_process:293:12)","timestamp":"2026-01-11T18:54:34.032Z"},{"error":"Error: Error opening file /Users/DaveMac/.claude/projects/-Users-DaveMac-Projects-Mac-DAIV/275d82f0-16dc-4859-9d70-fea95407e342.jsonl: RangeError: Invalid string length\n    at nh (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:170)\n    at async Kc (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4670:1779)\n    at async UP0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4670:3434)\n    at async uC7 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4669:2995)\n    at async i6A (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4670:2960)\n    at async fHA (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4670:1322)\n    at async kP0.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:5075:9043)\n    at async kP0.parseAsync (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4691:4156)\n    at async Fw7 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:5105:1637)\n    at async Dw7 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:5060:1569)","timestamp":"2026-01-11T18:54:37.802Z"},{"error":"Error: Error opening file /Users/DaveMac/.claude/projects/-Users-DaveMac-Projects-Mac-DAIV/275d82f0-16dc-4859-9d70-fea95407e342.jsonl: RangeError: Invalid string length\n    at nh (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:170)\n    at async Kc (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4670:1779)\n    at async UP0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4670:3434)\n    at async uC7 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4669:2995)\n    at async i6A (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:4670:2960)","timestamp":"2026-01-11T18:54:40.603Z"}]

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗