[BUG] Maybe js call 's bug?

Resolved 💬 4 comments Opened Dec 31, 2025 by ruiFlyBiu Closed Jan 4, 2026

Preflight Checklist

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

What's Wrong?

<!-- Failed to upload "image.png" -->

claude prompt error: show cli.js:2207:11991,TypeError: Cannot read properties of undefined

What Should Happen?

claude should call normally,but error occur

Error Messages/Logs

his error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
TypeError: Cannot read properties of undefined (reading 'startsWith')
    at tg5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2207:11991)
    at CX1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2207:12243)
    at CX1.next (<anonymous>)

Steps to Reproduce

1.pip install mcp-memory-service
2.claude
3.“prompt”

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.0.76 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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