English 中文(简体)
(承诺)类型 Error: Failed to fetch发动力进口模块:https:// localhost:7169/_framework/dotnet.js
原标题:Uncaught (in promise) TypeError: Failed to fetch dynamically imported module: https://localhost:7169/_framework/dotnet.js

Good day

我正在研究一个新的空白处,即NET 8RC 1,而当我正在缩编和作出改变时,该数字似乎在当地发挥作用,但这一错误在开发器工具(浏览器)中蔓延:

是什么?

GET https://localhost:7169/_framework/dotnet.js net::ERR_ABORTED 404 (Not Found)

(承诺)类型 Error: Failed to fetch发动力进口模块:https:// localhost:7169/_framework/dotnet.js

“entertext

问题回答

我最近遇到了同样的错误,发现我的案件中的原因与伙伴关系协会有关。 NET 核心服务器项目。 具体来说,这个问题涉及以下各行:

host.UseBlazorFrameworkFiles();

有趣的是,这一行文没有列入布茨or网申请模板,这使我相信它可能不再有效。

当我从7.NET更新到......时,这一错误便明显。 NET 8. Dan Roth是因特网社区的一个重要人物,在提升项目时也提到了类似的问题。 详情请见Gite Hub网页:。 Dan Roth s Net8BlazorWebAssembly

如果你在升级后再次面临类似问题,我建议采用Dan Roth的升级建议。

This occurs because the client (browser) has not been able to download the Javascript module dotnet.js, this library is used to create and start the .NET WebAssembly runtime. As you know, in a Blazor.Net 8 project it is possible through the @attribute to choose different operating modes for your page/component, examples: [RenderModeWebAssembly], [RenderModeAuto], [RenderModeServer] for example if you use the latter this library will not be necessary since Blazor the Framework uses this library blazor.web.js





相关问题
Blazor custom validation in child component

I have this component that goes into a form like <NumberWithNAAndAmberRanges2 @bind-BindNumber="LocVM.ChartDayStartMinute" NaName="Not Applicable" NaAllowed="true&...

Override/Disable Android Back Button in Blazor Hybrid MAUI

I have a .razor page which takes a lot of time to load. Is it possible to disable/override the hardware Back button in Blazor Hybrid MAUI for a specific .razor page? The primary reason for doing so is ...

Integrating Push Notifications in MAUI .NET 7 Applications

I m developing a cross-platform application using MAUI .NET 7 and I would like to add push notification functionality to my application. I m considering using Firebase Cloud Messaging or Azure ...

Blazor web assembly pass checkbox list values to model

I m new to Blazor. I m working in a web assembly Blazor project. I am trying to create a form that passes values back to a model. I have it working with input text fields and drop downs, but I am ...

热门标签