[SOLVED] Moralis Sdk Upgrade

Hello,
While using the Moralis sdk 1.3.1 version, I get the following warning in the console.


When I upgrade the Moralis sdk version to 2.5.3, I get the following errors.

I import Moralis on the lines where I get the error as follows: import {Moralis} from "moralis";
Can you help me?

if you are using the sdk in front end, you can use version 1.3.1 and ignore that warning, version 2 works only in backend

I solved this issue with change this line:
import {Moralis} from "moralis"; to import Moralis from "moralis";

1 Like