Hello, I’m trying to use the 1Inch plugin, but I’m getting this error:
Uncaught (in promise) TypeError: Moralis.initPlugins is not a function
at fetchsome (MainDex.tsx:17)
I have installed the latest version of Moralis SDK "moralis": "0.0.54",
with npm install moralis
and the server is updated to the latest version. The 1inch Plugin has also been successfully downloaded too.
I used const Moralis = require('moralis');
and in the function, I have this code like this:
await Moralis.enable;
await Moralis.initPlugins();
Am I doing something wrong or have I missed something?
Thanks in advance!