From the tutorial
When I am setting up my <WagmiConfig> config:
Like:
const {chains, publicClient, webSocketPublicClient} = configureChains(
[mainnet],
[
/**
* We recommend using `alchemyProvider or `infuraProvider`
* to reduce the risk of your application being rate limited.
*/
// alchemyProvider({apiKey: 'INSERT API KEY HERE'}),
publicProvider(),
],
);
const {connectors, wagmiConnectors} = buildConnectors({
chains,
projectId: 'YOUR_WALLET_CONNECT_PROJECT_ID',
});
const config = createConfig({
autoConnect: true,
connectors: wagmiConnectors,
publicClient,
webSocketPublicClient,
});
And then go to run my dev server I am getting:
TypeError: Object prototype may only be an Object or null: undefined
And the server won't start.
If I remove the buildConnectors call and pass <WagmiConfig> a basic config like from their docs:
const config = createConfig({
autoConnect: true,
publicClient: createPublicClient({
chain: mainnet,
transport: http(),
}),
});
The app will run. Any idea what's going on?
From the tutorial
When I am setting up my
<WagmiConfig>config:Like:
And then go to run my dev server I am getting:
TypeError: Object prototype may only be an Object or null: undefinedAnd the server won't start.
If I remove the
buildConnectorscall and pass<WagmiConfig>a basic config like from their docs:The app will run. Any idea what's going on?