Moralis.Cloud.define is not a function in node.js env using sdk

Moralis.Cloud.definine is not working right now.

how do you want to run this code? this should be in cloud functions.

Here is the source code.

Also โ€œmoralis/nodeโ€ typescript is not working.

The original post was about Moralis.Cloud.define, you use this in a cloud function.
https://docs.moralis.io/moralis-server/cloud-code/cloud-functions
A cloud function is code that you upload to your Moralis server.

Same to me. im getting this error Uncaught TypeError: webpack_require(โ€ฆ).Cloud.define is not a function

@golfredo, that syntax if for adding a function in cloud code (in your admin panel), not to run it locally.