/insights command throws TypeError: Cannot convert undefined or null to object

Resolved 💬 3 comments Opened Feb 7, 2026 by imleoo Closed Feb 10, 2026

Bug Description

Running the /insights command in Claude Code CLI throws a TypeError.

Steps to Reproduce

  1. Open Claude Code CLI in any project directory
  2. Type /insights and press Enter
  3. Error is thrown immediately

Error Output

❯ /insights
⎿ TypeError: Cannot convert undefined or null to object

The command fails consistently on every attempt.

Environment

  • Claude Code version: 2.1.34
  • Node.js version: v23.11.0
  • OS: macOS 15.7.3 (Darwin 24.6.0, arm64)
  • Shell: zsh

Expected Behavior

The /insights command should display usage insights or, if no data is available, show a helpful message indicating insufficient data.

Actual Behavior

The command crashes with TypeError: Cannot convert undefined or null to object without any useful output.

View original on GitHub ↗

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