请求小程序云对象出现错误:"error: Cannot find module '@alipay/faas-server-sdk'\nRequire stack:\n- /var/task/code/index.js. stack: Error: Cannot find module '@alipay/faas-server-sdk'\nRequire stack:\n- /var/task/code/index.js\n at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)\n at Module._load (node:internal/modules/cjs/loader:922:27)\n at Module.require (node:internal/modules/cjs/loader:1143:19)\n at require (node:internal/modules/cjs/helpers:119:18)\n at /var/task/code/index.js:2:25647\n at #func (/var/task/index.js:66874:11)\n at ScriptRunner.run (/var/task/index.js:66894:15)\n at #loadScript (/var/task/index.js:62097:34)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Container.loadScript (/var/task/index.js:62081:9)"
将云对象重新上传布署后问题消失。而且一直都是一个云对象有这个问题,其他的云对象没有,已经出现两次了。出现问题的云对象从来没有更新过代码。
cbj44125
- 发布:2024-01-01 09:43
- 更新:2024-01-03 19:31
- 阅读:289
产品分类: uniCloud/支付宝小程序云
cbj44125 (作者)
没有,只是一个很简单的查库返回结果。
2024-01-02 12:04