Problems with walletconnect in react-moralis

I get:

Authentication has failed: Cannot read properties of undefined (reading 'default')

after calling authenticate with Walletconnect provider.

I am using

"moralis": "^0.0.162",
"react-moralis": "^0.3.1",

Here is my code:

const {authenticate, isAuthenticating, authError} = useMoralis();

return (
    <Button isLoading={isAuthenticating} onClick={() => authenticate()}>
              Login with Metamask
     <Button isLoading={isAuthenticating}
                    onClick={() => authenticate({provider: 'walletconnect'})}>        
      Login with Walletconnect
1 Like

Hey @pbrudny

Have you installed the walletConnect itself?

1 Like

yarn add @walletconnect/web3-provider"

1 Like

Wow. That was quick response. Thanks a lot @Yomoo :smiley:
Works like a charm now :grinning: