菜品数据请求失败 Error: cloud.callFunction:fail Error: errCode: -504002 functions execute fail | errMsg: Runtime.ImportModuleError: Error: Cannot find module 'school-7gvwl8diaf51e1d0'
Require stack:
- /var/user/index.js
- /var/runtime/node16/UserFunction.js
- /var/runtime/node16/Runtime.engine.js
- /var/runtime/node16/bootstrap.js
at Object.module.exports.load (/var/runtime/node16/UserFunction.js:34:13)
at Runtime.handleOnce (/var/runtime/node16/Runtime.engine.js:85:38)
at Timeout._onTimeout (/var/runtime/node16/Runtime.engine.js:54:12)
at listOnTimeout (node:internal/timers:557:17)
at processTimers (node:internal/timers:500:7) (callId: 1710404486068-0.038042519885324255) (trace: 16:21:26 start->16:21:27 system error (Error: errCode: -504002 functions execute fail | errMsg: Runtime.ImportModuleError: Error: Cannot find module 'school-7gvwl8diaf51e1d0'
Require stack:
- /var/user/index.js
- /var/runtime/node16/UserFunction.js
- /var/runtime/node16/Runtime.engine.js
- /var/runtime/node16/bootstrap.js
at Object.module.exports.load (/var/runtime/node16/UserFunction.js:34:13)
at Runtime.handleOnce (/var/runtime/node16/Runtime.engine.js:85:38)
at Timeout._onTimeout (/var/runtime/node16/Runtime.engine.js:54:12)
at listOnTimeout (node:internal/timers:557:17)
at processTimers (node:internal/timers:500:7)), abort)
at R (<anonymous>:1:234824)
at <anonymous>:1:268613
跪求答案,这是哪的问题啊
原因是:Cannot find module 'school-7gvwl8diaf51e1d0'
应该是代码写错了,把云环境id当成module引入了。