Metamask adapter

Hi,

I was using MetaMask with the Polygon (137) and Sepolia (11155111) chains. I found that it was working with Sepolia. However, when I moved the code to production, I encountered a build error due to @metamask/rpc-errors, which I have not been able to resolve yet. I have not tested it with Polygon (137). I have posted the error on the Web3Auth GitHub for further assistance. Here is the link @metamask/abi-utils/dist/parsers/bool.js · Issue #1854 · Web3Auth/web3auth-web · GitHub Compile error when using create react app · Issue #150 · MetaMask/rpc-errors · GitHub

Thank you forward

Marc

Hey @marc.nahas we are looking into this issue, I’ll get back to you once we have any update. Meanwhile, can you confirm the SDK versions or share the package.json content?

@Ayush Hi, I am a developer working with @marc.nahas. Here is the list of dependencies from our app. After some debugging, I discovered that the main issue occurs when updating the Web3Auth SDK from version 8.0 to any version greater than 8.5. This update causes the @metamask/rpc-error library in the subdependencies to update from version 6.2.1 to 6.3.1, which results in a compile error.

"dependencies": { "@ant-design/icons": "^5.2.5", "@emotion/react": "^11.11.1", "@emotion/styled": "^11.11.0", "@mui/icons-material": "^5.14.3", "@mui/material": "^5.14.3", "@mui/x-date-pickers": "^6.19.4", "@reduxjs/toolkit": "^2.0.1", "@tanstack/react-query": "^5.28.14", "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", "@toruslabs/eccrypto": "5.0.1", "@web3auth/base": "8.7.0", "@web3auth/coinbase-adapter": "8.7.0", "@web3auth/ethereum-provider": "8.7.0", "@web3auth/metamask-adapter": "8.7.0", "@web3auth/modal": "8.7.0", "@web3auth/openlogin-adapter": "8.7.0", "@web3auth/torus-evm-adapter": "8.7.0", "@web3auth/ui": "8.7.0", "@web3auth/wallet-connect-v2-adapter": "8.7.0", "@web3auth/web3auth-wagmi-connector": "^6.0.0", "antd": "^5.7.3", "apexcharts": "^3.42.0", "axios": "^1.6.5", "ethers": "^6.11.1", "firebase": "^10.7.1", "lodash": "^4.17.21", "moment": "^2.30.1", "rc-tween-one": "^3.0.6", "react": "^18.2.0", "react-apexcharts": "^1.4.1", "react-dom": "^18.2.0", "react-hook-form": "^7.49.3", "react-icons": "^4.10.1", "react-phone-number-input": "^3.4.1", "react-redux": "^9.1.0", "react-router-dom": "^6.14.2", "react-scripts": "5.0.1", "react-share": "^5.0.3", "react-spinners": "^0.13.8", "react-svg": "^16.1.20", "react-toastify": "^10.0.3", "sass": "^1.64.1", "socket.io-client": "^4.7.5", "url": "^0.11.3", "viem": "2.16.5", "wagmi": "2.5.7", "web-vitals": "4.2.1" }, "devDependencies": { "@babel/plugin-transform-classes": "^7.24.7", "buffer": "^6.0.3", "eslint-config-react-app": "^7.0.1", "process": "^0.11.10", "react-app-rewired": "^2.2.1", "source-map-loader": "^4.0.1" }, "scripts": { "start": "react-app-rewired start", "build": "react-app-rewired build", "test": "react-app-rewired test", "eject": "react-scripts eject" },

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.