Property 'wc' does not exist on type 'WalletConnectProvider'. TS2339
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
I have the same problem, did you solve it?
Same problem with me too!
Please how did you solve this issue
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 connector184 | 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.
I was able to solve it by removing connector.walletConnectProvider?.wc?.uri in the condition @ablozhou @stebansaa