claude-code - 💡(How to fix) Fix [BUG] Cowork bundled claude-code-vm 2.1.111 crashes on launch with Bun TypeError; 2.1.87 on same machine works [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#52173Fetched 2026-04-23 07:34:41
View on GitHub
Comments
0
Participants
1
Timeline
7
Reactions
0
Participants
Timeline (top)
labeled ×7

Error Message

TypeError: Expected CommonJS module to have a function wrapper. If you weren't messing around with Bun's internals, this is a bug in Bun Bun v1.3.13 (Linux x64 baseline)

Code Example

TypeError: Expected CommonJS module to have a function wrapper. If you weren't messing around with Bun's internals, this is a bug in Bun
Bun v1.3.13 (Linux x64 baseline)
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?

What's wrong

Every Cowork task fails immediately with "Something went wrong — Claude Code process exited with code 1."

Direct invocation of the bundled binary at: /mnt/c/Users/<user>/AppData/Local/Packages/Claude_pzs8sxrjxfjjc/LocalCache/Roaming/Claude/claude-code-vm/2.1.111/claude

...produces the following Bun runtime error before the binary can do anything:

What Should Happen?

Expected behavior

Binary should report its version and exit 0. The 2.1.87 version of the bundled binary, present on the same machine from a previous install, does exactly this:

Error Messages/Logs

TypeError: Expected CommonJS module to have a function wrapper. If you weren't messing around with Bun's internals, this is a bug in Bun
Bun v1.3.13 (Linux x64 baseline)

Steps to Reproduce

Steps to reproduce

  1. Install Cowork on Windows 11 Pro (Cowork bundles claude-code-vm 2.1.111)
  2. Open any project, run any task
  3. Task fails with "Claude Code process exited with code 1"

To reproduce the underlying error directly, in WSL:/mnt/c/Users/<user>/AppData/Local/Packages/Claude_pzs8sxrjxfjjc/LocalCache/Roaming/Claude/claude-code-vm/2.1.111/claude --version

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.87 (bundled claude-code-vm in Cowork)

Claude Code Version

2.1.111 (bundled claude-code-vm in Cowork) — failing 2.1.87 (bundled claude-code-vm in Cowork) — working on same machine

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

This is a Cowork bug, not a standalone Claude Code CLI bug. Cowork bundles its own Claude Code runtime under:

%LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude-code-vm<version>\claude

The bundled binary is a Bun-compiled Linux ELF executable. The 2.1.111 build crashes inside Bun before it can do anything; the 2.1.87 build on the same machine works correctly. This points to a regression in how 2.1.111 was bundled with Bun, not an environment or user-config issue.

Hardware: Ryzen 5 7600X, RTX 3090, 32GB DDR5 WSL: WSL2, Ubuntu 24

extent analysis

TL;DR

The issue is likely due to a regression in the bundling of Claude Code with Bun, causing the binary to crash before execution.

Guidance

  • Verify that the issue is indeed related to the bundling process by comparing the build processes of versions 2.1.87 and 2.1.111.
  • Check the Bun version used for bundling in both versions to ensure it's compatible with the Claude Code binary.
  • Investigate the differences in the environment and dependencies between the working 2.1.87 version and the failing 2.1.111 version.
  • Consider downgrading to version 2.1.87 or waiting for a fix in a future version of Claude Code.

Example

No code snippet is provided as the issue seems to be related to the build and bundling process rather than a specific code error.

Notes

The issue appears to be specific to the Cowork-bundled Claude Code runtime and may not affect standalone Claude Code installations. The fact that the 2.1.87 version works on the same machine suggests a regression in the bundling process.

Recommendation

Apply workaround: Downgrade to version 2.1.87 until a fix is available for the bundling issue in version 2.1.111. This is because version 2.1.87 is known to work correctly on the same machine, and downgrading will allow users to continue using the software while the issue is being addressed.

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…

FAQ

Expected behavior

Binary should report its version and exit 0. The 2.1.87 version of the bundled binary, present on the same machine from a previous install, does exactly this:

Still need to ship something?

×6

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

Back to top recommendations

TRENDING