Skip to content
This repository was archived by the owner on Aug 30, 2022. It is now read-only.
This repository was archived by the owner on Aug 30, 2022. It is now read-only.

[Bug]: useWalletConnect does not work #89

Description

@rodrigooler

Prerequisites

  • I have checked that @thirdweb-dev/react and the @thirdweb-dev/sdk are on the latest stable version and the bug still exists.
  • 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"
  }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions