[Archive] Can't resolve '@walletconnect/client'

:classical_building: Archived Content from Web3Auth Community

This topic was originally posted by klashreik on 3/20/2023.
This content has been migrated from our previous community forum to preserve valuable discussions.


Try to connect rainbowkit with wagmi and web3auth and get an error

image
image969Ă—396 16.8 KB

dependencies that I use are:
“@rainbow-me/rainbowkit”: “^0.12.1”,
“@web3auth/base”: “^5.0.1”,
“@web3auth/modal”: “^5.0.1”,
“@web3auth/openlogin-adapter”: “^5.0.1”,
“@web3auth/torus-wallet-connector-plugin”: “^5.0.1”,
“@web3auth/web3auth-wagmi-connector”: “^3.0.0”,
“ethers”: “^5”,
“wagmi”: “^0.12.1”

Also, I use yarn to install everything.

Thank you in advance!

I’ve added @walletconnect/client myself and now I have this:

image
image949Ă—876 28.5 KB

an you try using npm instead and check if the error exists for you? @walletconnect/client is not needed for our side directly so not sure why this is going wrong. I will try to replicate this issue though.

Using npm i don’t get @wallet/connect error, but I have error which is one post higher about ethers/lib/utils.js. I guess it’s caused by ethers.js version. Which one should I use?

Thanks!

If you want to reproduce I can share github repository with you.

What is to tell, that I use nextJS to create my app.

Thanks!

pls share github repo.
you need to use ethers 5

Here it is

Thanks in advance!

Released 3.0.1 with the fix.
Pls upgrade

Upgraded, but this didn’t really help

image
image868Ă—475 14.7 KB

we’re not able to repro this issue.
Can you please share a minimal reproducible example?

You can also refer to this example here: https://github.com/Web3Auth/web3auth-wagmi-connector/tree/master/demos/wagmi-nextjs