[BUG] Extension v2.1.136 fails to activate on Windows — TypeError on createRequire
Resolved 💬 3 comments Opened May 8, 2026 by ctoMozaiko Closed May 9, 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?
When I try to use Claude COde on VsCode it shows an error message
<img width="575" height="74" alt="Image" src="https://github.com/user-attachments/assets/cbda3b33-f2f6-483d-92be-e71572e0b7be" />
What Should Happen?
Claude should open, but it is not happening, I downgrade to previous version
Error Messages/Logs
2026-05-08 17:45:22.389 [info] Extension host with pid 32972 started
2026-05-08 17:45:22.389 [info] Skipping acquiring lock for c:\Users\tuxpl\AppData\Roaming\Code\User\workspaceStorage\3a175098a07337e5451080ed15b1519e.
2026-05-08 17:45:22.807 [info] ExtensionService#_doActivateExtension vscode.github-authentication, startup: false, activationEvent: 'onAuthenticationRequest:github'
2026-05-08 17:45:22.859 [info] ExtensionService#_doActivateExtension mechatroner.rainbow-csv, startup: false, activationEvent: 'onLanguage:plaintext'
2026-05-08 17:45:22.871 [info] ExtensionService#_doActivateExtension vscode.emmet, startup: false, activationEvent: 'onLanguage'
2026-05-08 17:45:22.906 [info] ExtensionService#_doActivateExtension vscode.extension-editing, startup: false, activationEvent: 'onLanguage:markdown'
2026-05-08 17:45:22.924 [info] ExtensionService#_doActivateExtension vscode.markdown-language-features, startup: false, activationEvent: 'onLanguage:markdown'
2026-05-08 17:45:23.118 [info] ExtensionService#_doActivateExtension vscode.terminal-suggest, startup: false, activationEvent: 'onTerminalShellIntegration:*'
2026-05-08 17:45:23.528 [info] ExtensionService#_doActivateExtension vscode.markdown-math, startup: false, activationEvent: 'api', root cause: vscode.markdown-language-features
2026-05-08 17:45:23.863 [info] ExtensionService#_doActivateExtension vscode.git-base, startup: true, activationEvent: '*', root cause: vscode.git
2026-05-08 17:45:23.873 [info] ExtensionService#_doActivateExtension ms-python.python, startup: true, activationEvent: 'workspaceContains:pyproject.toml'
2026-05-08 17:45:24.030 [info] ExtensionService#_doActivateExtension ms-python.vscode-pylance, startup: true, activationEvent: 'workspaceContains:pyproject.toml'
2026-05-08 17:45:24.518 [info] ExtensionService#_doActivateExtension vscode.git, startup: true, activationEvent: '*'
2026-05-08 17:45:24.576 [info] ExtensionService#_doActivateExtension vscode.github, startup: true, activationEvent: '*'
2026-05-08 17:45:24.578 [info] ExtensionService#_doActivateExtension ms-python.vscode-python-envs, startup: false, activationEvent: 'api', root cause: ms-python.python
2026-05-08 17:45:25.018 [info] Eager extensions activated
2026-05-08 17:45:25.062 [info] ExtensionService#_doActivateExtension GitHub.copilot-chat, startup: false, activationEvent: 'onStartupFinished'
2026-05-08 17:45:26.157 [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch, startup: false, activationEvent: 'onStartupFinished'
2026-05-08 17:45:26.160 [info] ExtensionService#_doActivateExtension vscode.merge-conflict, startup: false, activationEvent: 'onStartupFinished'
2026-05-08 17:45:26.176 [info] ExtensionService#_doActivateExtension Anthropic.claude-code, startup: false, activationEvent: 'onStartupFinished'
2026-05-08 17:45:26.258 [error] Activating extension Anthropic.claude-code failed due to an error:
2026-05-08 17:45:26.258 [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\tuxpl\.vscode\extensions\anthropic.claude-code-2.1.136-win32-x64\extension.js:103:5579)
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/tuxpl/AppData/Local/Programs/Microsoft%20VS%20Code/8b640eef5a/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:806:6589)
at n._load (file:///c:/Users/tuxpl/AppData/Local/Programs/Microsoft%20VS%20Code/8b640eef5a/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:652:28855)
at n._load (file:///c:/Users/tuxpl/AppData/Local/Programs/Microsoft%20VS%20Code/8b640eef5a/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:644:25997)
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\tuxpl\AppData\Local\Programs\Microsoft VS Code\8b640eef5a\resources\app\extensions\copilot\dist\extension.js:494:36345)
at require (node:internal/modules/helpers:147:16)
at _P._doLoadModule (file:///c:/Users/tuxpl/AppData/Local/Programs/Microsoft%20VS%20Code/8b640eef5a/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:655:1487)
2026-05-08 17:45:26.258 [info] ExtensionService#_doActivateExtension ms-vscode-remote.remote-containers, startup: false, activationEvent: 'onStartupFinished'
2026-05-08 17:45:26.377 [info] ExtensionService#_doActivateExtension openai.chatgpt, startup: false, activationEvent: 'onStartupFinished'
2026-05-08 17:45:26.652 [info] ExtensionService#_doActivateExtension vscode.microsoft-authentication, startup: false, activationEvent: 'onAuthenticationRequest:microsoft'
2026-05-08 17:45:29.779 [error] Error: Thank you for using GitHub Copilot. Your subscription has ended. You are currently logged in as claudioRoliveira.
at Bre._authShowWarnings (c:\Users\tuxpl\AppData\Local\Programs\Microsoft VS Code\8b640eef5a\resources\app\extensions\copilot\dist\extension.js:1742:18064)
at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
at async Bre.getCopilotToken (c:\Users\tuxpl\AppData\Local\Programs\Microsoft VS Code\8b640eef5a\resources\app\extensions\copilot\dist\extension.js:1742:16253)
at async Mge.getCopilotToken (c:\Users\tuxpl\AppData\Local\Programs\Microsoft VS Code\8b640eef5a\resources\app\extensions\copilot\dist\extension.js:1400:7787)
at async lpe.updateCachedToken (c:\Users\tuxpl\AppData\Local\Programs\Microsoft VS Code\8b640eef5a\resources\app\extensions\copilot\dist\extension.js:2998:8746)
2026-05-08 17:45:29.781 [error] Error: Thank you for using GitHub Copilot. Your subscription has ended. You are currently logged in as claudioRoliveira.
at Bre._authShowWarnings (c:\Users\tuxpl\AppData\Local\Programs\Microsoft VS Code\8b640eef5a\resources\app\extensions\copilot\dist\extension.js:1742:18064)
at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
at async Bre.getCopilotToken (c:\Users\tuxpl\AppData\Local\Programs\Microsoft VS Code\8b640eef5a\resources\app\extensions\copilot\dist\extension.js:1742:16253)
at async Mge.getCopilotToken (c:\Users\tuxpl\AppData\Local\Programs\Microsoft VS Code\8b640eef5a\resources\app\extensions\copilot\dist\extension.js:1400:7787)
at async Mk._fetchModels (c:\Users\tuxpl\AppData\Local\Programs\Microsoft VS Code\8b640eef5a\resources\app\extensions\copilot\dist\extension.js:6832:4399)
t.
Steps to Reproduce
Open VSCode with latest version of Claude Code Extension, try to open the Claude Code chat window
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.133
Claude Code Version
2.1.76
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗