TypeError: Right-hand side of 'instanceof' is not callable

i’ve a big problem guys!! One day i woke up and my site doesen’t work, and it sayed this problem:

TypeError: Right-hand side of ‘instanceof’ is not callable.

This is app.js:

import { MoralisProvider } from “react-moralis”;

import “…/styles/globals.css”;

import “./style.css”;

function MyApp({ Component, pageProps }) {

return (

<MoralisProvider

  appId={process.env.NEXT_PUBLIC_APP_ID}

  serverUrl={process.env.NEXT_PUBLIC_SERVER_URL}

>

  <div className="bg">

    <Component {...pageProps} />

  </div>

</MoralisProvider>

);

}

export default MyApp;

and this is the env.local:

NEXT_PUBLIC_APP_ID=…
NEXT_PUBLIC_SERVER_URL=…

I don’t know the reason of this probem, really i try evrything but it still doens’t work!! Please help me !!

this error may be related to the version of the sdk, try an older version of the sdk or moralis-v1

Related thread.