[Bug]: useWalletConnect does not work
Prerequisites
- [x] I have checked that
@thirdweb-dev/reactand the@thirdweb-dev/sdkare on the latest stable version and the bug still exists. - [x] I have checked existing issues and I was unable to find a duplicate of this.
Describe the bug Hello, I'm using vitejs + react for development and I tried to use or useWalletConnect but it doesn't work (it doesn't open the modal) apart from the metamask it works perfectly but unfortunately o wallet connect doesn't work.
"Error: Provided URL is not compatible with HTTP connection: mainnet at new HttpConnection (node_modules/.vite/deps/@thirdweb-dev_react.js?v=c3cf0af6:55132:13) at WalletConnectProvider.setHttpProvider (node_modules/.vite/deps/@thirdweb-dev_react.js?v=c3cf0af6:57833:38) at new WalletConnectProvider (node_modules/.vite/deps/@thirdweb-dev_react.js?v=c3cf0af6:57746:22) at WalletConnectConnector.getProvider (node_modules/.vite/deps/@thirdweb-dev_react.js?v=c3cf0af6:57936:47) at WalletConnectConnector.connect (node_modules/.vite/deps/@thirdweb-dev_react.js?v=c3cf0af6:57891:29) at node_modules/.vite/deps/@thirdweb-dev_react.js?v=c3cf0af6:51540:36 at node_modules/.vite/deps/@thirdweb-dev_react.js?v=c3cf0af6:58723:130 at connectWalletConnect (src/components/ConnectWallet.tsx:272:23) at HTMLUnknownElement.callCallback2 (node_modules/.vite/deps/chunk-G4KYKZVE.js?v=f2bb35de:3450:22) at Object.invokeGuardedCallbackDev (node_modules/.vite/deps/chunk-G4KYKZVE.js?v=f2bb35de:3475:24)"
Package versions:
"dependencies": {
"@chakra-ui/icons": "2.0.2",
"@chakra-ui/react": "2.2.1",
"@emotion/react": "11",
"@emotion/styled": "11",
"@thirdweb-dev/react": "2.4.1",
"@thirdweb-dev/sdk": "2.3.13",
"ethers": "5.6.8",
"framer-motion": "6",
"i18next": "21.8.9",
"mathjs": "10.6.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-i18next": "11.17.2",
"react-icons": "4.4.0",
"react-query": "3.39.1",
"react-router-dom": "6"
},
"devDependencies": {
"@types/react": "18.0.12",
"@types/react-dom": "18.0.5",
"@vitejs/plugin-react": "1.3.2",
"typescript": "4.7.3",
"vite": "2.9.12"
}
@nachoiacovino Did you test here not [email protected] and it worked normally, If I'm not mistaken wagmi is also used internally but with a slightly outdated version would this be the problem with versions with vitejs?
"dependencies": {
"detect-browser": "^5.3.0",
"mime": "^3.0.0",
"react-cool-dimensions": "^2.0.7",
"react-query": "^4.0.0-beta.3",
"tiny-invariant": "^1.2.0",
"wagmi": "^0.2.28"
},