You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fresh install using npm install -g @bradygaster/squad-cli
or using the one off : npx @bradygaster/squad-cli gives error when using squads commands with the error message below.
There is a typo in the copilot-sdk\dist\session.js
missing the "js" file type, hence it keep getting errors.
Manually editing the file makes it work again:
import { ConnectionError, ResponseError } from "vscode-jsonrpc/node"; -> import { ConnectionError, ResponseError } from "vscode-jsonrpc/node.js";
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\Users\x\AppData\Roaming\npm\node_modules@bradygaster\squad-cli\node_modules\vscode-jsonrpc\node' imported from C:\Users\x\AppData\Roaming\npm\node_modules@bradygaster\squad-cli\node_modules@github\copilot-sdk\dist\session.js
Did you mean to import "vscode-jsonrpc/node.js"?
at finalizeResolution (node:internal/modules/esm/resolve:275:11)
at moduleResolve (node:internal/modules/esm/resolve:865:10)
at defaultResolve (node:internal/modules/esm/resolve:991:11)
at #cachedDefaultResolve (node:internal/modules/esm/loader:719:20)
at #resolveAndMaybeBlockOnLoaderThread (node:internal/modules/esm/loader:736:38)
at ModuleLoader.resolveSync (node:internal/modules/esm/loader:765:52)
at #resolve (node:internal/modules/esm/loader:701:17)
at ModuleLoader.getOrCreateModuleJob (node:internal/modules/esm/loader:621:35)
at ModuleJob.syncLink (node:internal/modules/esm/module_job:160:33)
at ModuleJob.link (node:internal/modules/esm/module_job:245:17) {
code: 'ERR_MODULE_NOT_FOUND',
url: 'file:///C:/Users/x/AppData/Roaming/npm/node_modules/@bradygaster/squad-cli/node_modules/vscode-jsonrpc/node'
}
Need to install the following packages:
@bradygaster/squad-cli@0.8.23
Ok to proceed? (y) y
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\Users\x\AppData\Local\npm-cache_npx\e1d26af36c0531f6\node_modules\vscode-jsonrpc\node' imported from C:\Users\x\AppData\Local\npm-cache_npx\e1d26af36c0531f6\node_modules@github\copilot-sdk\dist\session.js
Did you mean to import "vscode-jsonrpc/node.js"?
at finalizeResolution (node:internal/modules/esm/resolve:275:11)
at moduleResolve (node:internal/modules/esm/resolve:865:10)
at defaultResolve (node:internal/modules/esm/resolve:991:11)
at #cachedDefaultResolve (node:internal/modules/esm/loader:719:20)
at #resolveAndMaybeBlockOnLoaderThread (node:internal/modules/esm/loader:736:38)
at ModuleLoader.resolveSync (node:internal/modules/esm/loader:765:52)
at #resolve (node:internal/modules/esm/loader:701:17)
at ModuleLoader.getOrCreateModuleJob (node:internal/modules/esm/loader:621:35)
at ModuleJob.syncLink (node:internal/modules/esm/module_job:160:33)
at ModuleJob.link (node:internal/modules/esm/module_job:245:17) {
code: 'ERR_MODULE_NOT_FOUND',
url: 'file:///C:/Users/x/AppData/Local/npm-cache/_npx/e1d26af36c0531f6/node_modules/vscode-jsonrpc/node'
@MatthewSteeples and @LasseAtSparkron thanks for reporting this and iterating. I fired up a codespace and tried this with 0.8.22 and still had the error, so i re-pushed 0.8.23 and tried it and the error went away. Note - i did not try over-the-top of the failing 0.8.22 release, i just fired up a new codespace and tried again.
Can you confirm 0.8.23 "just works" with a new repo/folder whereas upgrading from 0.8.22 to 0.8.23 does not fix it?
Issue:#265 — ERR_MODULE_NOT_FOUND vscode-jsonrpc\node Assigned to: Keaton (Lead) Reason: No specific domain match — assigned to Lead for further analysis
@copilot evaluation: No strong capability match — routed to squad member.
The bug is upstream in @github/copilot-sdk@0.1.32 — session.js imports 'vscode-jsonrpc/node' instead of 'vscode-jsonrpc/node.js'. Node 24+ enforces strict ESM resolution and rejects the bare import.
v0.8.23 partially fixed this:
✅ npm install -g @bradygaster/squad-cli works (postinstall script patches the file)
✅ npx squad init works (lazy-load means init never imports copilot-sdk)
❌ npx squad (no subcommand) still crashes — npx caches packages and skips postinstall, so the patch never runs
Workaround (for users on v0.8.23)
Option 1 — Use global install instead of npx:
npm install -g @bradygaster/squad-cli
squad init
Option 2 — If you must use npx, clear the cache first:
# Find your npx cache
npm config get cache
# Delete the _npx folder inside it, then retry
Option 3 — Manual patch:
Find the cached copilot-sdk file and change vscode-jsonrpc/node to vscode-jsonrpc/node.js in node_modules/@github/copilot-sdk/dist/session.js.
Fix coming in v0.8.24
We've added a runtimeModule._resolveFilename intercept that rewrites the broken import at startup — no postinstall needed. This fixes all installation methods (global, npx, local). Tracking in commit 09e745f.
Activity
LasseAtSparkron commentedon Mar 7, 2026
looks like it's the copilot-sdk dependency that was upgraded today, any chance to lock it to an older version until the dependency are fixet ?
Related issue : microsoft/copilot-sdk#707
MatthewSteeples commentedon Mar 7, 2026
0.8.23 fixes this for meEDIT: It fixed me running
npx squad init, but not justnpx squadLasseAtSparkron commentedon Mar 7, 2026
I tried aswell with the 0.8.23
Works with the global version installed.
uninstalling
npm uninstall -g @bradygaster/squad-cli
and running the one off makes it crash.
npx @bradygaster/squad-cli
Need to install the following packages:
@bradygaster/squad-cli@0.8.23
Ok to proceed? (y) y
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\Users\x\AppData\Local\npm-cache_npx\e1d26af36c0531f6\node_modules\vscode-jsonrpc\node' imported from C:\Users\x\AppData\Local\npm-cache_npx\e1d26af36c0531f6\node_modules@github\copilot-sdk\dist\session.js
Did you mean to import "vscode-jsonrpc/node.js"?
at finalizeResolution (node:internal/modules/esm/resolve:275:11)
at moduleResolve (node:internal/modules/esm/resolve:865:10)
at defaultResolve (node:internal/modules/esm/resolve:991:11)
at #cachedDefaultResolve (node:internal/modules/esm/loader:719:20)
at #resolveAndMaybeBlockOnLoaderThread (node:internal/modules/esm/loader:736:38)
at ModuleLoader.resolveSync (node:internal/modules/esm/loader:765:52)
at #resolve (node:internal/modules/esm/loader:701:17)
at ModuleLoader.getOrCreateModuleJob (node:internal/modules/esm/loader:621:35)
at ModuleJob.syncLink (node:internal/modules/esm/module_job:160:33)
at ModuleJob.link (node:internal/modules/esm/module_job:245:17) {
code: 'ERR_MODULE_NOT_FOUND',
url: 'file:///C:/Users/x/AppData/Local/npm-cache/_npx/e1d26af36c0531f6/node_modules/vscode-jsonrpc/node'
bradygaster commentedon Mar 8, 2026
@MatthewSteeples and @LasseAtSparkron thanks for reporting this and iterating. I fired up a codespace and tried this with 0.8.22 and still had the error, so i re-pushed 0.8.23 and tried it and the error went away. Note - i did not try over-the-top of the failing 0.8.22 release, i just fired up a new codespace and tried again.
Can you confirm 0.8.23 "just works" with a new repo/folder whereas upgrading from 0.8.22 to 0.8.23 does not fix it?
github-actions commentedon Mar 8, 2026
📋 Assigned to Fortier (Node.js Runtime)
Issue: #265 — ERR_MODULE_NOT_FOUND vscode-jsonrpc\node
Fortier will pick this up in the next Copilot session.
github-actions commentedon Mar 8, 2026
🏗️ Squad Triage — Keaton (Lead)
Issue: #265 — ERR_MODULE_NOT_FOUND vscode-jsonrpc\node
Assigned to: Keaton (Lead)
Reason: No specific domain match — assigned to Lead for further analysis
@copilot evaluation: No strong capability match — routed to squad member.
Team roster:
squad:keatonsquad:verbalsquad:fenstersquad:hockneysquad:mcmanussquad:kujansquad:ediesquad:trejosquad:druckersquad:fortiersquad:rabinsquad:baersquad:redfootsquad:strauszsquad:saulsquad:kovashsquad:marquezsquad:cherittosquad:breedansquad:natesquad:waingrosquad:ralphsquad:copilotbradygaster commentedon Mar 8, 2026
Root Cause Analysis
The bug is upstream in
@github/copilot-sdk@0.1.32—session.jsimports'vscode-jsonrpc/node'instead of'vscode-jsonrpc/node.js'. Node 24+ enforces strict ESM resolution and rejects the bare import.v0.8.23 partially fixed this:
npm install -g @bradygaster/squad-cliworks (postinstall script patches the file)npx squad initworks (lazy-load means init never imports copilot-sdk)npx squad(no subcommand) still crashes — npx caches packages and skips postinstall, so the patch never runsWorkaround (for users on v0.8.23)
Option 1 — Use global install instead of npx:
Option 2 — If you must use npx, clear the cache first:
If that still fails, clear the npx cache:
Option 3 — Manual patch:
Find the cached copilot-sdk file and change
vscode-jsonrpc/nodetovscode-jsonrpc/node.jsinnode_modules/@github/copilot-sdk/dist/session.js.Fix coming in v0.8.24
We've added a runtime
Module._resolveFilenameintercept that rewrites the broken import at startup — no postinstall needed. This fixes all installation methods (global, npx, local). Tracking in commit 09e745f.Upstream issue: microsoft/copilot-sdk#707
2 remaining items
docs(squad): harden release team charters + retro + security tests
fix(cli): runtime ESM patch for npx on Node 24+ (#265)
fix(cli): ESM runtime patch + secret guardrails sprint (#265, #267) (#…
feat: squad aspire command and squad-observer file watcher (github#265,
chore(.squad): update fenster history and decisions for github#265, g…
Merge pull request github#307 from bradygaster/squad/265-268-aspire-a…
chore(.squad): Wave 2 launch — REPL polish, security fix, config extr…
feat(metrics): Add rework rate OTEL metrics (github#265) — 5th DORA m…
feat(metrics): Add rework rate OTEL metrics (#265)
test: add dashboard smoke test