not able to importKey in testnet/production server #1039
Unanswered
deepak-interakt
asked this question in
Developer Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi there , i am new to wallet-connect and i made connections like this . in my local machiene metamask and wallet-connect both are working fine where as when i push them to test server / production server just wallet-connect fails to connect and i get this issue :
browser.ts:44 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'importKey')
at browser.ts:44:11
at u (runtime.js:63:40)
at Generator._invoke (runtime.js:294:22)
at Generator.next (runtime.js:119:21)
at r (asyncToGenerator.js:3:20)
at c (asyncToGenerator.js:25:9)
at asyncToGenerator.js:32:7
at new Promise ()
at asyncToGenerator.js:21:12
at d (2.0ed14a77.chunk.js:2:694132)
`
my connection code :
const web3Modal =
new Web3Modal({
cacheProvider: true,
bridge: "https://bridge.walletconnect.org",
providerOptions: {
injected : {
},
walletconnect: {
package: WalletConnectProvider,
options: {
infuraId: process.env.REACT_APP_INFURA_ID,
rpc:{
1:"https://mainnet.infura.io/v3/" + process.env.REACT_APP_INFURA_ID,
4: "https://rinkeby.infura.io/v3/" + process.env.REACT_APP_INFURA_ID,
137: "https://polygon-mainnet.infura.io/v3/" + process.env.REACT_APP_INFURA_ID,
80001: "https://matic-mumbai.chainstacklabs.com",
}
},
},
},
});
can anyone help me with this
Beta Was this translation helpful? Give feedback.
All reactions