[BUG] VS Code Extension Build Bug

Resolved 💬 3 comments Opened May 6, 2026 by WahooWah Closed May 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?

Same bug back in 2.1.129 on Windows 11, same hardcoded /home/runner/work/... path."


### What Should Happen?

Claude extension should load in VS Code.

### Error Messages/Logs

```shell
2026-05-05 22:52:53.726 [error] Activating extension Anthropic.claude-code failed due to an error:
2026-05-05 22:52:53.726 [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'
	at Module.createRequire (node:internal/modules/cjs/loader:1922:13)
	at Object.<anonymous> (c:\Users\brice\.vscode\extensions\anthropic.claude-code-2.1.129-win32-x64\extension.js:102:5407)
	at Module._compile (node:internal/modules/cjs/loader:1713:14)
	at Module._extensions..js (node:internal/modules/cjs/loader:1847:10)
	at Module.load (node:internal/modules/cjs/loader:1448:32)
	at Module._load (node:internal/modules/cjs/loader:1270:12)
	at c._load (node:electron/js2c/node_init:2:18041)
	at i._load (file:///c:/Users/brice/AppData/Local/Programs/Microsoft%20VS%20Code/034f571df5/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:834:6589)
	at e._load (file:///c:/Users/brice/AppData/Local/Programs/Microsoft%20VS%20Code/034f571df5/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:652:28611)
	at n._load (file:///c:/Users/brice/AppData/Local/Programs/Microsoft%20VS%20Code/034f571df5/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:644:25996)
	at TracingChannel.traceSync (node:diagnostics_channel:328:14)
	at wrapModuleLoad (node:internal/modules/cjs/loader:244:24)
	at Module.require (node:internal/modules/cjs/loader:1470:12)
	at Module.require (c:\Users\brice\AppData\Local\Programs\Microsoft VS Code\034f571df5\resources\app\extensions\copilot\dist\extension.js:492:36345)
	at require (node:internal/modules/helpers:147:16)
	at wP._doLoadModule (file:///c:/Users/brice/AppData/Local/Programs/Microsoft%20VS%20Code/034f571df5/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:683:1614)

Steps to Reproduce

Error happens when trying to load Claude Extension in VS Code.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.126

Claude Code Version

2.1.129

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

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