无法读取未定义的属性(读取“摘要”)角度+ ipfs 建立在 https 之上
您好,我有问题:应用程序在本地环境中完美运行。在进行产品或开发构建后,我收到错误:
Cannot read properties of undefined (reading 'digest')
它来自供应商:
sha512: function () {
var _ref = _asyncToGenerator(function* (message) {
if (crypto.web) {
const buffer = yield crypto.web.subtle.digest('SHA-512', message.buffer);
请提供提示,我缺乏想法。
附言。我正在使用 https 证书,但尚未完成,正在等待证书提供商的响应。
Hello I have issue: App works perfectly on local environment. After making prod or dev build I got error:
Cannot read properties of undefined (reading 'digest')
and it comes from venedor:
sha512: function () {
var _ref = _asyncToGenerator(function* (message) {
if (crypto.web) {
const buffer = yield crypto.web.subtle.digest('SHA-512', message.buffer);
Please for hints, I have lack of ideas.
PS. I am using https certificate but it is not finished yet, waiting for response from cert provider.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于每个获得未定义摘要的人。就像我说的,我同时在托管中安装 SSL 证书。正如文档所述,您必须通过 HTTPS 源获取内容。
For everyone getting undefined digest. Like I said I was meanwhile SSL cert installation in hosting. You have to have content over HTTPS origin like docs said.