React error #31: object with keys {optional} crashes CLI
Resolved 💬 2 comments Opened Feb 3, 2026 by ush19 Closed Feb 3, 2026
Bug Description
Claude Code crashes with a minified React error #31 when rendering.
Error Message
ERROR Minified React error #31; visit https://react.dev/errors/31?args[]=object%20with%20keys%20%7Boptional%7D for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
The error indicates an object with keys {optional} is being passed where React expects a valid element.
Stack Trace
/$bunfs/root/claude:672:8731
- I8 (/$bunfs/root/claude:672:8731)
- T_ (/$bunfs/root/claude:672:10842)
- b5 (/$bunfs/root/claude:672:12411)
- Tx (/$bunfs/root/claude:672:14695)
- <anonymous> (/$bunfs/root/claude:672:15209)
- Vq (/$bunfs/root/claude:672:35463)
- Mt (/$bunfs/root/claude:672:51475)
- cj (/$bunfs/root/claude:672:85493)
- dt (/$bunfs/root/claude:672:84475)
- im (/$bunfs/root/claude:672:84301)
Environment
- Claude Code version: 2.1.29
- Platform: macOS Darwin 25.2.0
- Date: 2026-02-03
Steps to Reproduce
The error occurred during normal CLI usage. Exact trigger is unclear - it appeared during a conversation session.
Expected Behavior
The CLI should render without crashing.
Additional Context
The error appears to be in the React rendering layer of the CLI itself, not in user code or configuration.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗