Skip to content

fix: pin wagmi packages to 2.x line so the build compiles#1

Open
lightchainaidev wants to merge 1 commit into
mainfrom
fix/wagmi-build
Open

fix: pin wagmi packages to 2.x line so the build compiles#1
lightchainaidev wants to merge 1 commit into
mainfrom
fix/wagmi-build

Conversation

@lightchainaidev

Copy link
Copy Markdown

Problem

pnpm build failed: the Reown wagmi adapter resolved @wagmi/connectors@8.0.15, which drags in a broken @wagmi/core@3.5.0 whose experimental tempo module does import('accounts') (a package that doesn't exist).

Fixes

  • pnpm override pinning @wagmi/connectors@6.2.0 + @wagmi/core@2.22.1 to match wagmi@2.19.5 — drops the broken 3.5.0.
  • config/wagmi.ts — import cookieStorage/createStorage from wagmi (the transitive @wagmi/core isn't resolvable for types).
  • next.config.ts — alias @metamask/sdk's optional React Native async-storage to false for the web build.

pnpm install && pnpm build now passes.

🤖 Generated with Claude Code

The Reown wagmi adapter resolved @wagmi/connectors@8.0.15, dragging in a
broken @wagmi/core@3.5.0 whose experimental tempo module imports a missing
"accounts" package. Pin @wagmi/connectors@6.2.0 and @wagmi/core@2.22.1 to
match wagmi 2.19.5.

Also import cookieStorage/createStorage from wagmi (the transitive
@wagmi/core is not resolvable for types) and alias @metamask/sdk's optional
React Native async-storage to false in the web build.

Co-Authored-By: Claude Fable 5 <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.

1 participant