Skip to content

ERR_MODULE_NOT_FOUND: vscode-jsonrpc/node on Node.js v25.6.1 (squad init) #319

Closed as not planned

Description

@uvirk

Description

Running squad init on Node.js v25.6.1 (via nvm4w) crashes with:

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '...squad-cli\node_modules\vscode-jsonrpc\node'
imported from '...squad-cli\node_modules\@github\copilot-sdk\dist\session.js'
Did you mean to import "vscode-jsonrpc/node.js"?

Environment

  • OS: Windows 11
  • Node.js: v25.6.1 (nvm4w)
  • npm: 11.9.0
  • squad-cli: 0.8.18 (globally installed)

Root Cause

Node 25 enforces strict ESM resolution requiring .js extensions on imports. @github/copilot-sdk imports vscode-jsonrpc/node without the .js suffix.

Notes

  • v0.8.23 release notes mention a fix for this on Node 24+ (lazy copilot-sdk imports + postinstall patch script). The installed version (0.8.18) predates that fix.
  • It would be good to confirm the fix in v0.8.25 also covers Node 25.x — the release notes only reference Node 24+.
  • Workaround: downgrade to Node 22 LTS.

Steps to Reproduce

  1. nvm install 25 / nvm use 25
  2. npm install -g @bradygaster/squad-cli@0.8.18
  3. squad init

Expected

squad init should work or print a clear minimum-Node-version error.

Activity

  1. uvirk commented on Mar 9, 2026

    @uvirk
    Author

    Closing — the root cause is the migration docs pinning v0.8.18. Filing a separate docs-update issue instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions