Closed chompcoinxyz closed 1 month ago
Thank you for reporting this. A couple of follow up questions:
use client
in any of those pages? As many of OnchainKit components work only on client side rendering because of React Hooks.wagmi
2.10.2 but in the package json it seems you have 2.12.1, I wonder if your nodemodules installation now has two version of wagmi
in it. Can you try to remove all your nodemodules and do a clean install.Thank you for your reply. Reinstalling node modules helped. It works now.
Ok sweet, thank you for checking with us.
Describe the bug and the steps to reproduce it
I am encountering an unhandled runtime error when adding the Swap component to our minting platform built on Base. The error message states that
useConfig
must be used withinWagmiProvider
.Steps to reproduce:
What's the expected behavior?
The Swap component should function correctly without any runtime errors.
Actual Behavior
An unhandled runtime error occurs, displaying the message:
Error in console:
SwapComponent
:wagmiConfig
:WagmiProvider
:What version of the libraries are you using?
"@coinbase/onchainkit": "^0.23.2", "@coinbase/wallet-sdk": "^4.0.3", "@tanstack/react-query": "^5.45.1", "next": "13.4.3", "viem": "^2.18.1", "wagmi": "^2.12.1"
Node.js: 18.20.3