Skip to content

Reown Wallet Connect AppKit SSR undefined error in React.js Application #5372

Closed Answered by tomiir
hugoorlov asked this question in Developer Support
Discussion options

You must be logged in to vote

Hey @hugoorlov !
Seems like you are initializing appkit correctly, but you are passing wagmiAdapter instead of wagmiAdapter.wagmiConfig to your WagmiProvider

This should fix your issue:

const wagmiAdapter = new WagmiAdapter({
  ssr: true,
  networks,
  projectId
})
...
export function AppKitProvider({ children }) {
return (
 <WagmiProvider config={wagmiAdapter.wagmiConfig}>
    <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
</WagmiProvider>
)
}

Will push a fix to our docs so it's properly documented. Thank you for raising this 🙏

Let us know how it goes!

Replies: 1 comment 2 replies

Comment options

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

@rtomas
Comment options

rtomas Sep 19, 2024
Collaborator

Answer selected by hugoorlov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants