Hey guys! I’m requesting Moralis SDK from my module JS App. Installed (npm install moralis) sdk, then I got error Error [ERR_MODULE_NOT_FOUND]: Cannot find package ‘@moralis/sdk’ imported from …/app.js on this code
import { Moralis } from '@moralis/sdk';
Changed to
import { Moralis } from 'moralis';
got
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'moralis';
const { Moralis } = pkg;
After changing to above code got
await Moralis.start({
^
TypeError: Cannot read properties of undefined (reading 'start')
Any suggestions?