Hey guys !
I found Moralis’ API really cool so I’m trying to use it in a project of mine, but whenever I try to initialize Moralis with my app’s credentials while using an ES6 import (
import Moralis from 'moralis/node';) to add Moralis’ JS SDK to my NestJS back-end app, I get this error :
TypeError: Cannot read properties of undefined (reading 'start').
Using the old way of importing node packages (
const Moralis = require('moralis/node');) “fixes” it, but I can’t figure out why it the error I described above happens.
Does anybody know how to fix this issue I’m having ?