Skip to content

Missing Module Error in SDK Versions 0.1.10 and 0.1.11 #8

@danpowell88

Description

@danpowell88

Summary

@github/copilot-sdk versions 0.1.10 and 0.1.11 fail at runtime with ERR_MODULE_NOT_FOUND due to an incorrect import statement in dist/sdkProtocolVersion.js. Version 0.1.9 works correctly.

Environment

  • Node.js: v22.21.1
  • Platform: GitHub Actions (ubuntu-latest)
  • Module Type: ESM ("type": "module")

Error Message

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '@github/sdk-protocol-version.json' 
imported from /home/runner/work/.../node_modules/@github/copilot-sdk/dist/sdkProtocolVersion.js

Affected Versions

Version Status
0.1.9 ✅ Works
0.1.10 ❌ Broken
0.1.11 ❌ Broken

Reproduction Steps

  1. Create a new Node.js project with "type": "module"
  2. Install @github/copilot-sdk@0.1.11 (or 0.1.10)
  3. Import any module from the SDK
  4. Run with Node.js 22.x

Workaround

Pin to version 0.1.9:

"@github/copilot-sdk": "0.1.9"

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions