Open ponyjackal opened 1 year ago
I encountered the same issue. Here's some trace
TypeError: Cannot read properties of undefined (reading 'on')
at WalletConnect.eval (index.js?6bf5:105:1)
at Generator.next (<anonymous>)
at fulfilled (index.js?6bf5:28:43)
this.provider.connector.on('display_uri', this.URIListener);
Further investigation suggests that @walletconnect/ethereum-provider
v2 introduced breaking changes. We need to rework the connection.
Current workaround: Use v1
- "@walletconnect/ethereum-provider": "^2.1.4",
+ "@walletconnect/ethereum-provider": "^1.7.5",
Thought wallet connect v1 is depreceted
I tried to connect with
WalletConnect
but it failed to connectI was able to connect metamask and coinbase wallet without any issues
Here are versions I use
Here is the code piece for walletConnect connector initialization
Can I get some help on this?