收藏
回答

云开发数据库在前端无法显示内容?

菜品数据请求失败 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

跪求答案,这是哪的问题啊

回答关注问题邀请回答
收藏

1 个回答

  • 跨商通
    跨商通
    03-14

    原因是:Cannot find module 'school-7gvwl8diaf51e1d0'

    应该是代码写错了,把云环境id当成module引入了。

    03-14
    有用
    回复
登录 后发表内容