unsupported to use "export *" in a client boundary #3694
-
i get this error while setting up web3Modal for my next.js app. This is what I get
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi could you share a MRE? |
Beta Was this translation helpful? Give feedback.
-
I ran into this exact error when upgrading to Wagmi I had this code in my wagmi config file: import * as all chains from "wagmi/chains"
import { type Chain } from "wagmi";
import { bsc, bscTestnet, goerli, hardhat, localhost, mainnet, sepolia } from "viem/chains";
const chainList = [ mainnet, sepolia, goerli, bsc, bscTestnet, hardhat, localhost ]; hope that helps! EDIT: import * as allChains from "viem/chains"; |
Beta Was this translation helpful? Give feedback.
I ran into this exact error when upgrading to Wagmi
1.x
. Thewagmi/chains
re-exportsviem/chains
. If you look at this file there is no longer an array of all chains, only named exports for each chain.I had this code in my wagmi config file:
hope that helps!
EDIT:
just changing the import to
viem/chains
also w…