Repository navigation
fix(deps): bump @solana/kit to ^8 for Bun + @x402/svm 2.29 - #1608
ninglinLiu wants to merge 1 commit into
Conversation
Fixes coinbase#1607. @x402/svm 2.29.0 peers on @solana/kit >=8 and pulls @solana-program/compute-budget that imports the kit-8 program-client-core subpath. AgentKit still depended on @solana/kit ^2, so Bun hoisted kit 2 and failed to load AgentKit with Cannot find module '@solana/kit/program-client-core'. Bump the direct dependency to ^8 so the peer is satisfied.
|
Confirming this affects pnpm as well as Bun, and that this PR fixes both. A fresh install of
pnpm 11 and later hid this for a day, because by default they won't install a release less than 24 hours old ( This branch (95952df), built and packed, then installed the same way, loads under npm, pnpm (where Temporary workaround for projects depending on AgentKit 0.10.4, until an AgentKit release includes this fix: hold
Remove the override once you're on that release: it would otherwise hold |
Summary
Fixes #1607.
@x402/svm2.29.0 peers on@solana/kit >=8and pulls@solana-program/compute-budgetthat imports the kit-8 subpathprogram-client-core. AgentKit still depended on@solana/kit ^2, so Bun hoisted kit 2 to the top level and failed to load AgentKit withCannot find module '@solana/kit/program-client-core'.Bump the direct
@solana/kitdependency to^8so the peer is satisfied under Bun (npm/pnpm already worked via nested installs).Test plan
pnpm --filter @coinbase/agentkit build(tsc) succeeds with kit 8.6.0svmWalletProvider/solanaKeypairWalletProvidersrc unit tests passimport "@coinbase/agentkit"without the missingprogram-client-coreerror once this lands in a releaseAI assistance was used to prepare this change; I reviewed the dependency bump and test results.