claude-code - 💡(How to fix) Fix [BUG] Claude Desktop crashes with "e.replace is not a function" (error code: 1GY780K) when using Lark MCP tool to read documents [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#47879Fetched 2026-04-15 06:39:42
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×2unlabeled ×1

Error Message

From ~/Library/Logs/Claude/claude.ai-web.log:

[BOOTSTRAP] Fatal error boundary triggered { "errorMessage": "e.replace is not a function", "errorCode": "1GY780K", "url": "/local_sessions/local_a8fae05c-e6d2-4230-93e9-cf89e81d2c09", "errorStack": "TypeError: e.replace is not a function\n at Iet (index-D6CrmkzP.js:25:391377)\n at Oet (index-D6CrmkzP.js:25:393718)\n at Het (index-D6CrmkzP.js:25:395787)\n at Qet (index-D6CrmkzP.js:25:400559)\n at index-D6CrmkzP.js:25:582364\n at Object.Xi [as useMemo] (vendor-BFBxBwou.js:11:61312)" }

Code Example

From ~/Library/Logs/Claude/claude.ai-web.log:

[BOOTSTRAP] Fatal error boundary triggered {
  "errorMessage": "e.replace is not a function",
  "errorCode": "1GY780K",
  "url": "/local_sessions/local_a8fae05c-e6d2-4230-93e9-cf89e81d2c09",
  "errorStack": "TypeError: e.replace is not a function\n
    at Iet (index-D6CrmkzP.js:25:391377)\n
    at Oet (index-D6CrmkzP.js:25:393718)\n
    at Het (index-D6CrmkzP.js:25:395787)\n
    at Qet (index-D6CrmkzP.js:25:400559)\n
    at index-D6CrmkzP.js:25:582364\n
    at Object.Xi [as useMemo] (vendor-BFBxBwou.js:11:61312)"
}
RAW_BUFFERClick to expand / collapse

Preflight Checklist

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

What's Wrong?

Claude Desktop crashes and shows the "Claude will return soon" disruption page (error code: 1GY780K) whenever Claude attempts to respond in a conversation where the Lark MCP server is configured. The crash occurs during response rendering — the Lark MCP tool is never actually invoked before the crash happens.

What Should Happen?

Claude Desktop should successfully call the Lark MCP tools and render the response without crashing.

Error Messages/Logs

From ~/Library/Logs/Claude/claude.ai-web.log:

[BOOTSTRAP] Fatal error boundary triggered {
  "errorMessage": "e.replace is not a function",
  "errorCode": "1GY780K",
  "url": "/local_sessions/local_a8fae05c-e6d2-4230-93e9-cf89e81d2c09",
  "errorStack": "TypeError: e.replace is not a function\n
    at Iet (index-D6CrmkzP.js:25:391377)\n
    at Oet (index-D6CrmkzP.js:25:393718)\n
    at Het (index-D6CrmkzP.js:25:395787)\n
    at Qet (index-D6CrmkzP.js:25:400559)\n
    at index-D6CrmkzP.js:25:582364\n
    at Object.Xi [as useMemo] (vendor-BFBxBwou.js:11:61312)"
}

Steps to Reproduce

  1. Add the Lark MCP server to claude_desktop_config.json: { "mcpServers": { "lark-mcp": { "command": "npx", "args": ["-y", "@larksuiteoapi/lark-mcp", "mcp", "-a", "<APP_ID>", "-s", "<APP_SECRET>"] } } }

  2. Restart Claude Desktop

  3. Start a new conversation

  4. Send a message asking Claude to read a Lark/Feishu wiki document (e.g. "Please read this document: https://xxx.feishu.cn/wiki/...")

  5. Claude Desktop immediately crashes and displays the "Claude will return soon" disruption page with error code 1GY780K

Note: The same MCP configuration works correctly in Claude Code CLI. The crash is 100% reproducible every time.

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

Claude 1.2278.0 (e5213f) 2026-04-13T17:49:21.000Z

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue is likely caused by a JavaScript error in the Claude Desktop code, specifically a TypeError where e.replace is not a function, and can be fixed by investigating and resolving this error.

Guidance

  • Investigate the index-D6CrmkzP.js file, specifically line 25, to determine why e.replace is not a function.
  • Verify that the e object is correctly defined and has the expected properties before attempting to call replace on it.
  • Check if there are any differences in how the Lark MCP server is handled between the Claude Desktop and CLI versions, as the same configuration works correctly in the CLI.
  • Review the error stack to identify the sequence of function calls leading up to the error and determine where the issue originates.

Example

No code snippet can be provided without more information about the index-D6CrmkzP.js file and the surrounding code.

Notes

The issue is reported as a regression, indicating that it worked in a previous version, but the last working version is not specified. This information may be helpful in identifying the cause of the issue.

Recommendation

Apply a workaround by temporarily removing the Lark MCP server configuration from claude_desktop_config.json to prevent the crash, while investigating the root cause of the JavaScript error.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING