web3-react icon indicating copy to clipboard operation
web3-react copied to clipboard

Property 'wc' does not exist on type 'WalletConnectProvider'. TS2339

Open stebansaa opened this issue 4 years ago • 6 comments

Im seeing this error on walletconnect-connector 6.2.13 , any insight would be appreciated:

/src/components/WalletModal/index.tsx(184,89): Property 'wc' does not exist on type 'WalletConnectProvider'. TS2339

182 | 
183 |     // if the connector is walletconnect and the user has already tried to connect, manually reset the connector

184 | if (connector instanceof WalletConnectConnector && connector.walletConnectProvider?.wc?.uri) { | ^ 185 | connector.walletConnectProvider = undefined

stebansaa avatar Mar 25 '22 02:03 stebansaa

I have the same problem, did you solve it?

ranyong321 avatar Mar 29 '22 08:03 ranyong321

Same problem with me too!

rmagon avatar Apr 02 '22 15:04 rmagon

Please how did you solve this issue

Pelumi527 avatar May 11 '22 17:05 Pelumi527

Im seeing this error on walletconnect-connector 6.2.13 , any insight would be appreciated:

/src/components/WalletModal/index.tsx(184,89): Property 'wc' does not exist on type 'WalletConnectProvider'. TS2339

182 | 
183 |     // if the connector is walletconnect and the user has already tried to connect, manually reset the connector

184 | if (connector instanceof WalletConnectConnector && connector.walletConnectProvider?.wc?.uri) { | ^ 185 | connector.walletConnectProvider = undefined

Guys,i solved it.Code here:

    let list : any
    list = connector.walletConnectProvider
    // if the connector is walletconnect and the user has already tried to connect, manually reset the connector
    if (connector instanceof WalletConnectConnector && list?.wc?.uri) {
     connector.walletConnectProvider = undefined
    }

I have the same problem. @shifouhaiyaocuoguoyigeyewan 's method didn't work.

ablozhou avatar Aug 22 '22 11:08 ablozhou

I was able to solve it by removing connector.walletConnectProvider?.wc?.uri in the condition @ablozhou @stebansaa

ferrjohnpainagan avatar Oct 30 '22 14:10 ferrjohnpainagan