-
I am working NextJs 14 with Typescript "^5". This is my config file "use client"; import { WagmiProvider } from "wagmi"; const config = getDefaultConfig({ const Configurations = ({ children }) => { export default Configurations; it's not working with typescript. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
in that code you're only returning children, so you're missing all the providers. return <WagmiProvider config={config}>
<QueryClientProvider client={queryClient}>
<RainbowKitProvider>
{children}
</RainbowKitProvider>
</QueryClientProvider>
</WagmiProvider> |
Beta Was this translation helpful? Give feedback.
-
@uzair-cbt I can't reproduce this on my end. Can you please share a small reproducible example ? |
Beta Was this translation helpful? Give feedback.
Issue was fixed. It was typescript version error with wagmi.
"viem": "^2.8.12",
"wagmi": "^2.5.11",
"typescript": "5.4.2"
with these versions it's working fine.