[SOLVED] Moralis v1 error NextJs

Hi, I got this error from newly created Moralis NextJs. no idea what is going on

Unhandled Runtime Error
TypeError: Right-hand side of 'instanceof' is not callable
Call Stack
encode
node_modules/react-moralis/lib/index.esm.js (13958:0)
_default
node_modules/react-moralis/lib/index.esm.js (14042:0)
Object.run
node_modules/react-moralis/lib/index.esm.js (92033:0)

Below are the only dependencies I have

"dependencies": {
    "moralis-v1": "^1.11.0",
    "next": "12.2.5",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-moralis": "^1.4.1"
  },
 <MoralisProvider appId={moralisAppID} serverUrl={moralisServerUrl}>
          <Component {...pageProps} />
  </MoralisProvider>

try with 1.4.0, and without that ^

it is working thanks, also had to change β€œmoralis-v1”: β€œ^1.11.0” to β€œmoralis”: β€œ^1.11.0”,

    "@web3auth/web3auth": "^1.2.0",
    "moralis": "^1.11.0",
    "next": "12.2.5",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-moralis": "1.4.0"
1 Like