首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Blazor wasm独立部署错误:分析“”integrity“”属性时出错

Blazor wasm独立部署错误:分析“”integrity“”属性时出错
EN

Stack Overflow用户
提问于 2021-06-29 00:40:53
回答 1查看 188关注 0票数 1

我创建了一个无主机的渐进式blazor WebAssembly应用程序。

已遵循URL重写模块,发布后上报错误:

代码语言:javascript
复制
Error parsing 'integrity' attribute ('undefined'). The hash algorithm must be one of 'sha256', 'sha384', or 'sha512', followed by a '-' character.
(anonymous) @ blazor.webassembly.js:1
blazor.webassembly.js:1 Uncaught (in promise) Error: Content hash is required
    at e.<anonymous> (blazor.webassembly.js:1)
    at blazor.webassembly.js:1
    at Object.next (blazor.webassembly.js:1)
    at blazor.webassembly.js:1
    at new Promise (<anonymous>)
    at blazor.webassembly.js:1
    at e.loadResourceWithCaching (blazor.webassembly.js:1)
    at e.loadResource (blazor.webassembly.js:1)
    at blazor.webassembly.js:1
    at l (blazor.webassembly.js:1)
blazor.webassembly.js:1 Uncaught (in promise) Error: Content hash is required
    at e.<anonymous> (blazor.webassembly.js:1)
    at blazor.webassembly.js:1
    at Object.next (blazor.webassembly.js:1)
    at blazor.webassembly.js:1
    at new Promise (<anonymous>)
    at blazor.webassembly.js:1
    at e.loadResourceWithCaching (blazor.webassembly.js:1)
    at e.loadResource (blazor.webassembly.js:1)
    at blazor.webassembly.js:1
    at l (blazor.webassembly.js:1)
Error parsing 'integrity' attribute ('undefined'). The hash algorithm must be one of 'sha256', 'sha384', or 'sha512', followed by a '-' character.
:52335/_framework/undefined:1 Uncaught SyntaxError: Unexpected token '<'
service-worker.js:15 Service worker: Install
EN

回答 1

Stack Overflow用户

发布于 2021-09-25 09:50:18

我遇到了同样的错误,这条评论对我很有帮助:https://stackoverflow.com/a/65470781/2358515

在发布选项中检查target framework -对于客户端应用程序,应为browser-wasm

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68167094

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档