MoralisWeb3 / react-moralis

Hooks and components to use Moralis in a React app
MIT License
624 stars 166 forks source link

WalletConnect doesn't work on Remix run #230

Open coderkk1992 opened 2 years ago

coderkk1992 commented 2 years ago

New Bug Report

Checklist

Issue Description

Authentication with wallet connect doesn't work on Remix-run. Metamask login works, just not wallet connect. any clue?

Steps + code to reproduce

Regular steps as in the documentation.

Actual Outcome

The wallet connect popup doesn't show up. no errors on the console.

ErnoW commented 2 years ago

Did you add the walletconnect provided as dependency (see the docs)?

Otherwise please share your code and steps on how to reproduce this.

wakechromium commented 2 years ago

Same with vite.

akanstein commented 2 years ago

@wakechromium pls could you share your code?

wakechromium commented 2 years ago

login function

await authenticate({provider: 'walletconnect'});

package.json file

  "name": "app",
  "private": true,
  "version": "0.0.1",
  "scripts": {
    "dev": "vite",
    "build": "vite build",
    "preview": "vite preview",
    "prepare": "husky install",
    "lint": "eslint .",
    "lint:fix": "eslint --fix ."
  },
  "dependencies": {
    "@emotion/react": "^11.9.0",
    "@emotion/styled": "^11.8.1",
    "@mui/icons-material": "^5.8.0",
    "@mui/material": "^5.8.1",
    "@mui/styles": "^5.8.0",
    "@walletconnect/web3-provider": "^1.7.8",
    "chart.js": "^3.8.0",
    "clsx": "^1.1.1",
    "install": "^0.13.0",
    "moment": "^2.29.3",
    "moralis": "^1.7.0",
    "notistack": "^2.0.5",
    "react": "^18.0.0",
    "react-chartjs-2": "^4.1.0",
    "react-dom": "^18.0.0",
    "react-hook-form": "^7.31.2",
    "react-moralis": "^1.3.5",
    "react-redux": "^8.0.2",
    "react-router-dom": "^6.3.0",
    "redux": "^4.2.0"
  },
  "devDependencies": {
    "@types/react": "^18.0.0",
    "@types/react-dom": "^18.0.0",
    "@vitejs/plugin-react": "^1.3.0",
    "eslint": "^8.2.0",
    "eslint-config-airbnb": "19.0.4",
    "eslint-config-prettier": "^8.5.0",
    "eslint-plugin-import": "^2.25.3",
    "eslint-plugin-jsx-a11y": "^6.5.1",
    "eslint-plugin-prettier": "^4.0.0",
    "eslint-plugin-react": "^7.28.0",
    "eslint-plugin-react-hooks": "^4.3.0",
    "events": "^3.3.0",
    "husky": "^8.0.0",
    "prettier": "^2.6.2",
    "vite": "^2.9.9"
  },
  "lint-staged": {
    "*{.js, .jsx}": [
      "eslint .",
      "prettier --write"
    ]
  }
}