claude-code - 💡(How to fix) Fix VS Code extension 2.1.136 fails activation on Windows with build-agent-sdk sdk.mjs path error

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…

Claude Code for VS Code 2.1.136 fails to activate on Windows. Rolling back to 2.1.133 restores clean activation.

Error Message

Activating extension Anthropic.claude-code failed due to an error: TypeError: The argument 'filename' must be a file URL object, file URL string, or absolute path string. Received 'file:///home/runner/work/claude-cli-internal/claude-cli-internal/build-agent-sdk/sdk.mjs'

Root Cause

Claude Code for VS Code 2.1.136 fails to activate on Windows. Rolling back to 2.1.133 restores clean activation.

Fix Action

Fix / Workaround

  • 2.1.133 activates cleanly on the same machine.
  • 2.1.136 appears to include a bundled createRequire(...) path referencing /home/runner/work/.../build-agent-sdk/sdk.mjs.
  • Workaround: install 2.1.133.

Code Example

Activating extension Anthropic.claude-code failed due to an error:
TypeError: The argument 'filename' must be a file URL object, file URL string, or absolute path string. Received 'file:///home/runner/work/claude-cli-internal/claude-cli-internal/build-agent-sdk/sdk.mjs'

---

...\.vscode\extensions\anthropic.claude-code-2.1.136-win32-x64\extension.js:103:5579
RAW_BUFFERClick to expand / collapse

Summary

Claude Code for VS Code 2.1.136 fails to activate on Windows. Rolling back to 2.1.133 restores clean activation.

Environment

  • OS: Windows x64
  • VS Code: 1.119.0
  • Extension: anthropic.claude-code
  • Failing version: 2.1.136
  • Working version: 2.1.133

Steps to Reproduce

  1. Install anthropic.claude-code-2.1.136-win32-x64.vsix.
  2. Reload or reopen VS Code.
  3. Let the extension activate via onStartupFinished, or open the Claude Code panel.

Expected Behavior

Claude Code activates successfully.

Actual Behavior

Extension activation fails with:

Activating extension Anthropic.claude-code failed due to an error:
TypeError: The argument 'filename' must be a file URL object, file URL string, or absolute path string. Received 'file:///home/runner/work/claude-cli-internal/claude-cli-internal/build-agent-sdk/sdk.mjs'

Stack includes:

...\.vscode\extensions\anthropic.claude-code-2.1.136-win32-x64\extension.js:103:5579

Notes

  • 2.1.133 activates cleanly on the same machine.
  • 2.1.136 appears to include a bundled createRequire(...) path referencing /home/runner/work/.../build-agent-sdk/sdk.mjs.
  • Workaround: install 2.1.133.

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

claude-code - 💡(How to fix) Fix VS Code extension 2.1.136 fails activation on Windows with build-agent-sdk sdk.mjs path error