Skip to content

TypeError: (0 , wagmi_providers_public__WEBPACK_IMPORTED_MODULE_2__.publicProvider) is not a function #3226

Answered by RandolphJiffy
linghuccc asked this question in Q&A
Discussion options

You must be logged in to vote

you can try "use client" in first line,i have same problem with you and slove it。

"use client"
import { WagmiConfig, createConfig, configureChains, mainnet } from 'wagmi'
import { publicProvider } from 'wagmi/providers/public'

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@linghuccc
Comment options

@DORTROX
Comment options

Answer selected by linghuccc
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants