火锅鸡
火锅鸡
  • 发布:2024-03-29 22:50
  • 更新:2024-03-30 14:23
  • 阅读:59

Cannot find module 'node:https'

分类:uniCloud

我在xx.ext.js里面写了这个

const https = require("node:https")  
const crypto = require('crypto');  
const hash = crypto.createHash('md5');  

使用本地云函数的时候,运行正常。
上传后,打开网页,就提示这个

Cannot find module 'node:https'

请问要如何解决?

2024-03-29 22:50 负责人:无 分享
已邀请:
火锅鸡

火锅鸡 (作者)

使用下面的可以解决

const https = require("https")

要回复问题请先登录注册