无法读取未定义的属性(读取“摘要”)角度+ ipfs 建立在 https 之上

发布于 2025-01-14 03:15:27 字数 416 浏览 1 评论 0原文

您好,我有问题:应用程序在本地环境中完美运行。在进行产品或开发构建后,我收到错误:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

万劫不复 2025-01-21 03:15:27

对于每个获得未定义摘要的人。就像我说的,我同时在托管中安装 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文