fix(deps): pin vana-sdk to 4.0.0 until 4.2.0's ESM break is fixed - #37
Merged
Merged
Conversation
vana-sdk 4.2.0, published 2026-09-16T17:59:46Z, added
`import { CONTRACTS } from "../config/contracts.config"` to
dist/protocol/jobs-client.js with no file extension, which Node's ESM
resolver rejects. The CLI imports that module directly from
src/cli/app/read.ts, so every fresh install died on startup:
ERR_MODULE_NOT_FOUND: Cannot find module .../dist/config/contracts.config
The caret range let both install paths float onto it. It broke
`npm install vana-cli` for any version, and it broke the v0.23.11 release
binaries, because scripts/build-sea.mjs installs the app payload with a
bare `npm install` against the root dependency ranges and never sees
pnpm-lock.yaml. That is why the release went green through build and then
failed its own post-install self-check.
Pinning to the exact version the lockfile already resolved keeps the npm
tree, the SEA payload and CI on the build we test. Revert to a range once
the SDK ships a fixed release.
github-actions Bot
pushed a commit
that referenced
this pull request
Sep 16, 2026
## [0.23.12](v0.23.11...v0.23.12) (2026-09-16) ### Bug Fixes * **deps:** pin vana-sdk to 4.0.0 until 4.2.0's ESM break is fixed ([#37](#37)) ([12c32b8](12c32b8))
Contributor
|
🎉 This PR is included in version 0.23.12 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What broke
@opendatalabs/vana-sdk@4.2.0was published at 2026-09-16T17:59:46Z. Itsdist/protocol/jobs-client.jsline 35 is:No file extension. Node's ESM resolver rejects that, so anything importing the module dies at startup:
The CLI imports it directly, from
src/cli/app/read.ts:27. Neither 4.0.0 nor 4.1.0 referencescontracts.configat all, so this is new in 4.2.0.Why it reached us
^4.0.0let both install paths float onto it:npm install vana-cliresolves the SDK at install time, so every fresh install is broken today, at any CLI version. Reproduced on a clean tree with 0.23.11.scripts/build-sea.mjs:274builds the binary payload by writing a syntheticpackage.jsoncarrying the root dependency ranges and running a barenpm install. It never seespnpm-lock.yaml. So the SEA payload floats too.That is why the v0.23.11 release passed build and then failed its own post-install self-check (
vana status --json). Confirmed by running the publishedvana-linux-x64.tar.gzunder Docker.Note that
pnpm-lock.yamlhad it at 4.0.0 the whole time. CI tested one version and shipped another.The change
One line:
^4.0.0becomes4.0.0, the version the lockfile already resolved. That puts the npm tree, the SEA payload and CI on the same build. Revert to a range once the SDK ships a fixed release.Verified
pnpm validate: 364 tests, lint and format cleannpm install --omit=dev --ignore-scriptsagainst the root ranges) and it now resolves 4.0.0, not 4.2.0pnpm installrewrites the file in its own style because the committed copy is prettier-formatted by lint-staged, and the hook normalizes it backFollow-ups, not in this PR