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.
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.