My dapp used to work about a day ago. Getting this error:
2021-06-09T17:17:25.447Z - TypeError: require is not a function
at eval (eval at customUserPlugin (/moralis-server/cloud/main.js:8:21), <anonymous>:1:17)
at customUserPlugin (/moralis-server/cloud/main.js:8:21)
at /moralis-server/lib/cloud-code/plugins/index.js:62:15
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Object.initialize (/moralis-server/lib/cloud-code/plugins/index.js:51:3)
Its failing because of these lines below. Please advise…
const BigNumber = require("bignumber.js");
const Web3 = require("web3");