Skip to content

fix(kamino): pin @kamino-finance/farms-sdk to 3.2.24 - #64

Open
avneesh0612 wants to merge 5 commits into
mainfrom
fix/kamino-farms-sdk-pin
Open

fix(kamino): pin @kamino-finance/farms-sdk to 3.2.24#64
avneesh0612 wants to merge 5 commits into
mainfrom
fix/kamino-farms-sdk-pin

Conversation

@avneesh0612

Copy link
Copy Markdown
Contributor

Problem

next build for examples/nextjs-stablecoin-yield-kamino fails on a clean install (e.g. Vercel) with:

Module not found: Can't resolve '@kamino-finance/farms-sdk/dist/@codegen/farms/programId.js'

Root cause:

  • klend-sdk@7.3.22 hard-require()s @kamino-finance/farms-sdk/dist/@codegen/farms/programId.
  • farms-sdk@3.2.25 (latest) removed that file — a breaking change shipped in a patch release.
  • The example declared ^3.2.24, which resolves to the broken 3.2.25 on a fresh install.

Local builds only passed because a stale programId.js from a pre-3.2.25 install was left behind in node_modules (pnpm didn't prune it). A clean install drops it and the build breaks.

Fix

  • Pin the direct dependency @kamino-finance/farms-sdk to exact 3.2.24.
  • Add a pnpm.overrides entry forcing farms-sdk3.2.24 so klend-sdk's transitive copy stays on the good version too.
  • Add .gitignore for the Vercel link directory.

Pinning exact (not ^) is deliberate here since a patch release proved capable of breaking the API.

Verification

  • Clean frozen install resolves only farms-sdk@3.2.24; programId.js is present.
  • pnpm build passes from a clean node_modules.
  • Deployed to production on Vercel (dynamic-xyz/kamino) — builds green, site serves 200.

🤖 Generated with Claude Code

farms-sdk@3.2.25 removed dist/@codegen/farms/programId.js, but
klend-sdk@7.3.22 still requires that exact path. The unbounded
range (^3.2.24) resolves to the broken 3.2.25 on a clean install,
breaking `next build` with "Module not found" — local builds only
passed because of a stale, unpruned programId.js in node_modules.

Pin the direct dependency to exact 3.2.24 and add a pnpm override so
klend-sdk's transitive copy resolves to 3.2.24 too. Add .gitignore for
the Vercel link directory.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
kamino Ready Ready Preview, Comment Jun 18, 2026 7:06pm
nextjs-agentic-payments-x402 Error Error Jun 18, 2026 7:06pm
nextjs-iron-ramp Ready Ready Preview, Comment Jun 18, 2026 7:06pm
predictions-market-demo Ready Ready Preview, Comment Jun 18, 2026 7:06pm

Request Review

@vercel

vercel Bot commented Jun 2, 2026

Copy link
Copy Markdown

Deployment failed with the following error:

There is no GitHub account connected to this Vercel account.

Removed pnpm overrides for specific packages.
@dynamic-labs-sdk/solana pulls in 1.98.1 alongside the project's 1.98.4,
causing TypeScript to see incompatible VersionedTransaction types. The override
forces all transitive deps to a single version.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants