http module not found #5264
Replies: 1 comment
-
I updated my packages |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello I am trying to use getAccount however when I set up my config.ts file I am getting these 2 errors
Module '"@wagmi/core"' has no exported member 'http'.
Object literal may only specify known properties, and 'chains' does not exist in type 'CreateConfigParameters<PublicClient, WebSocketPublicClient>'.ts(2353)
This is my file
import { http ,createConfig } from '@wagmi/core'
import { mainnet, sepolia } from '@wagmi/core/chains'
export const config = createConfig({
chains: [mainnet, sepolia],
transports: {
[mainnet.id]: http(),
[sepolia.id]: http(),
},
})
Beta Was this translation helpful? Give feedback.
All reactions