[BUG] API Error: Cannot read properties of undefined (reading map)

Resolved 💬 6 comments Opened Nov 24, 2025 by CyberMew Closed Feb 6, 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?

I am trying to use Claude code in my project folder path and it keeps on giving this.

Previously, after some prolonged periods of use, it will eventually trigger this and all I had to do was to start a new Claude code session by quitting and starting Claude, throwing all my previous context away which is fine with me.

Now, the issue is “locked” to this folder path, and no matter what I do it returns the error.

I don’t know why this happens, and I need a way to fix this. Please provide the workaround for this seemingly generic error to fix it. I have no issues on other paths.

What Should Happen?

There should NEVER EVER be an api error of undefined reading map.

Error Messages/Logs

Steps to Reproduce

No way to reproduce consistently, so probably something dynamic related.

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.0.50

Platform

Other

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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