TypeError: Right-hand side of ‘instanceof’

dependencies": {
   "@date-io/dayjs": "^2.14.0",
   "@emotion/react": "^11.9.0",
   "@emotion/styled": "^11.8.1",
   "@expo-google-fonts/orbitron": "^0.2.2",
   "@material-ui/core": "^4.12.4",
   "@mui/icons-material": "^5.8.0",
   "@mui/material": "^5.8.1",
   "@mui/x-date-pickers": "^5.0.0-alpha.6",
   "@reduxjs/toolkit": "^1.8.2",
   "@sumsub/websdk": "^1.3.1",
   "@types/node": "^17.0.40",
   "@types/react-dom": "^18.0.5",
   "@types/react-google-recaptcha": "^2.1.5",
   "@types/webpack-env": "^1.17.0",
   "@vouched.id/vouched-react-native": "0.6.0",
   "@walletconnect/react-native-dapp": "^1.7.8",
   "@walletconnect/web3-provider": "^1.7.8",
   "@web3auth/web3auth": "^1.0.0",
   "add": "^2.0.6",
   "expo": "~45.0.0",
   "expo-status-bar": "~1.3.0",
   "formik": "^2.2.9",
   "magic-sdk": "7.0.0",
   "moralis": "^1.11.0",
   "react": "17.0.2",
   "react-countdown": "^2.3.2",
   "react-dom": "17.0.2",
   "react-dropzone": "^14.2.1",
   "react-google-recaptcha": "^2.1.0",
   "react-moralis": "^1.4.0",
   "react-multi-carousel": "^2.8.2",
   "react-native": "0.68.2",
   "react-native-crypto": "^2.2.0",
   "react-native-gesture-handler": "2.2.1",
   "react-native-reanimated": "2.8.0",
   "react-native-web": "0.17.7",
   "react-qr-code": "^2.0.7",
   "react-redux": "^8.0.2",
   "react-router-dom": "6",
   "react-scripts": "4.0.3",
   "resub": "^2.3.1",
   "sharp-cli": "2.1.1",
   "web3": "^1.7.3",
   "web3-auth": "^1.1.0",
   "yarn": "^1.22.18",
   "yup": "^0.32.11"
 },
 "devDependencies": {
   "@babel/core": "^7.12.9",
   "@expo/webpack-config": "^0.16.24",
   "@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
   "@types/react": "~17.0.21",
   "@types/react-native": "~0.67.6",
   "gh-pages": "^4.0.0",
   "react-error-overlay": "6.0.9",
   "react-refresh": "^0.13.0",
   "tsconfig-paths": "^4.0.0",
   "typescript": "~4.3.5",
   "webpack-hot-middleware": "^2.25.1"
 },

I have the mentioned versions but that happened after I updated moralis, deleted node_modules and reinstalled the project now nothing loads and it gives me that error:

Which Moralis / react-moralis versions were you using when it was working? Is this error coming from the use of react-moralis?

if it was working fine, and when I updated moral and moralis-react everything was damaged, those are the dependencies that it had and that it currently has, I cleared the cache, reinstalled the project and nothing. second error in console is : Uncaught (in promise) TypeError: Right-hand side of ‘instanceof’ is not callable

Try using a lower version of react moralis package [email protected] for temporary fix.
It seem to have worked for a user on discord.

I’ve learned something new today and did some tests, and found the issue, for some reason it doesn’t work with expo-cli -g from version 6.0.3 to 6.0.0, could you check this please, since I work with expo and I update because version 5.5.1 of expo is deprecated for web debugger reasons, and the version of moralis that I use “moralis”: “1.11.0”, I mention it in case someone helps, thanks for the help and quick response

1 Like