How to fix 'MoralisSecret is required'

Hi, i using Moralis in Nodejs, i receive a warning when start Moralis
Moralis.start warning: to use web3 access, moralisSecret is required
How to fix?

Other than getting that warning, do you have other problems in nodejs?
moralisSecret was recently added, but it should not affect previous functionality

Other than getting that warning, my code is work, It is ok!

Same here. Running a script.js under node like this:

node script.js

“Moralis.start warning: to use web3 access, moralisSecret is required”

Furthermore I’m getting:

(node:8153) UnhandledPromiseRejectionWarning: TypeError: Moralis.web3ByChain is not a function

In my code I have:

const Moralis = require(“moralis/node”);

const serverUrl = “…”
const appId = “…”
Moralis.start({ serverUrl, appId });
const web3 = Moralis.web3ByChain(“0x4”); // Rinkeby (test)

The Moralis server on my account has Rinkeby enabled.

Moralise.web3ByChain may be a function only available in a cloud function.
You could use web3 directly with your speedy node RPC url on your local system.

Thank you cryptokid for the quick response.

However, I’m not sure what you’re saying… “may be a function only available in a cloud function”?

So what Moralis function would I use in nodeJS?

you can use normal Web3 in nodejs.