Servers IDs:
Because I am a new user, I am currently unable to post links. I have extracted the following IDs from the “Server URL” in the Moralis Dashboard:
- stt7ztzpxm9h
- f27ndibzrcn5
- stt7ztzpxm9h
Problem Specification:
I have not made any changes to my Cloud Functions over the last week, but these have recently started logging the following error:
TypeError: mod.require is not a function
at require (internal/modules/cjs/helpers.js:92:18)
at require (/moralis-server/cloud/main.js:96:28)
at Object.8605 (eval at customUserPlugin (/moralis-server/cloud/main.js:102:21), <anonymous>:1:93602)
at __nccwpck_require__ (eval at customUserPlugin (/moralis-server/cloud/main.js:102:21), <anonymous>:1:94307)
at Object.8104 (eval at customUserPlugin (/moralis-server/cloud/main.js:102:21), <anonymous>:1:356)
at __nccwpck_require__ (eval at customUserPlugin (/moralis-server/cloud/main.js:102:21), <anonymous>:1:94307)
at Object.8190 (eval at customUserPlugin (/moralis-server/cloud/main.js:102:21), <anonymous>:1:18335)
at __nccwpck_require__ (eval at customUserPlugin (/moralis-server/cloud/main.js:102:21), <anonymous>:1:94307)
at Object.5062 (eval at customUserPlugin (/moralis-server/cloud/main.js:102:21), <anonymous>:1:13639)
at __nccwpck_require__ (eval at customUserPlugin (/moralis-server/cloud/main.js:102:21), <anonymous>:1:94307)
at Object.8178 (eval at customUserPlugin (/moralis-server/cloud/main.js:102:21), <anonymous>:1:10871)
at __nccwpck_require__ (eval at customUserPlugin (/moralis-server/cloud/main.js:102:21), <anonymous>:1:94307)
at Object.2618 (eval at customUserPlugin (/moralis-server/cloud/main.js:102:21), <anonymous>:1:8938)
at __nccwpck_require__ (eval at customUserPlugin (/moralis-server/cloud/main.js:102:21), <anonymous>:1:94307)
at Object.6545 (eval at customUserPlugin (/moralis-server/cloud/main.js:102:21), <anonymous>:1:108)
at __nccwpck_require__ (eval at customUserPlugin (/moralis-server/cloud/main.js:102:21), <anonymous>:1:94307)
at Module.3325 (eval at customUserPlugin (/moralis-server/cloud/main.js:102:21), <anonymous>:1:66815)
at __nccwpck_require__ (eval at customUserPlugin (/moralis-server/cloud/main.js:102:21), <anonymous>:1:94307)
at eval (eval at customUserPlugin (/moralis-server/cloud/main.js:102:21), <anonymous>:1:95288)
at eval (eval at customUserPlugin (/moralis-server/cloud/main.js:102:21), <anonymous>:1:95350)
at customUserPlugin (/moralis-server/cloud/main.js:102:21)
at /moralis-server/lib/cloud-code/plugins/index.js:72:15
Prior to this, I was not having any issues. I believe this error started to get logged on around 2021-09-24T18:06:28.444Z
. I was running v0.0.267, when I first noticed this error. I have upgraded to v0.0.271, but this has not lead to a resolution.
Further Background Information:
I am currently bundling my cloud functions into a single file using the @vercel/ncc
CLI, and I deploy these using the moralis-admin-cli watch-cloud-file
command.