ethereum-react-native-boilerplate icon indicating copy to clipboard operation
ethereum-react-native-boilerplate copied to clipboard

`yarn web` fails with TypeError: Moralis.Web3 is not a constructor

Open nconfrey opened this issue 3 years ago • 0 comments

On a fresh clone, running yarn web or yarn ios fails with the following error:

TypeError: Moralis.Web3 is not a constructor _useMoralisWeb3 node_modules/react-moralis/lib/index.esm.js:922 919 | * Handles enabling of web3 and providing it, as soon as the user is authenticated 920 | */ 921 | var _useMoralisWeb3 = function (Moralis) {

922 | var _a = useState(new Moralis.Web3()), web3 = _a[0], setWeb3 = _a[1]; 923 | var _b = useState(false), isWeb3Enabled = _b[0], setIsWeb3Enabled = _b[1]; 924 | var _c = useState(null), web3EnableError = _c[0], setEnableWeb3Error = _c[1]; 925 | var _d = useState(false), isWeb3EnableLoading = _d[0], setIsWeb3EnableLoading = _d[1];

As it is inside the react-moralis package, I suspect an update is required.

nconfrey avatar Nov 29 '21 20:11 nconfrey