Module not found: Can't resolve '@walletconnect/legacy-client’

Updating dependencies for Wallet Connect V2 migration


If you have recently attempted migrating from WCv1 to WCv2, you may have run into the following error:

Module not found: Can't resolve '@walletconnect/legacy-client'


This error means the dependencies need to be removed and reinstalled per the steps below.


Full error for reference:

Module not found: Can't resolve '@walletconnect/legacy-client'
Import trace for requested module:



To overcome this, please follow the steps below:

  1. Remove node_modules. If you are using vite - delete the node_modules/.vite folder, if you are using next.js - delete the .next folder
  1. If you have added @thirdweb-dev/react as a dependency in package.json, you don't need to add @thirdweb-dev/wallets.
  1. If you have @thirdweb-dev/wallets installed, remove it from package.json. There is no need to have both @thirdweb-dev/react and @thirdweb-dev/wallets in package.json dependency. Just have @thirdweb-dev/react
  1. Run yarn install to update your dependencies.

After following these steps, dependencies should be properly installed and the error message resolved.


If you are still running into an error after following these steps, please create a new post in our Discord #support channel.

Did this answer your question?