无法在启用热重载功能的情况下运行 blazor 程序集项目(.net 6 预览版 5)

mar*_*inn 5 hot-reload blazor-webassembly

安装 net6 Preview 3 并将项目设置为使用 net6 后,我更改了 launchSettings.json 并添加了 "hotReloadProfile": "blazorwasm"配置。

当我运行dotnet watch项目启动时,但由于客户端错误(dotnet.6.0.0-preview.5.21301.5.js),我无法打开应用程序:

System.AggregateException: One or more errors occurred. (Failed to fetch dynamically imported module: https://localhost:5555/_framework/blazor-hotreload.js
TypeError: Failed to fetch dynamically imported module: https://localhost:5555/_framework/blazor-hotreload.js)
 ---> Microsoft.JSInterop.JSException: Failed to fetch dynamically imported module: https://localhost:5555/_framework/blazor-hotreload.js
TypeError: Failed to fetch dynamically imported module: https://localhost:5555/_framework/blazor-hotreload.js
   at Microsoft.JSInterop.JSRuntime.<InvokeAsync>d__15`1[[Microsoft.JSInterop.IJSObjectReference, Microsoft.JSInterop, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext() in Microsoft.JSInterop.dll:token 0x600008f+0x154
   at Microsoft.AspNetCore.Components.WebAssembly.HotReload.WebAssemblyHotReload.InitializeAsync() in Microsoft.AspNetCore.Components.WebAssembly.dll:token 0x6000098+0xc6
   at Microsoft.AspNetCore.Components.WebAssembly.Hosting.WebAssemblyHost.RunAsyncCore(CancellationToken cancellationToken, WebAssemblyCultureProvider cultureProvider) in Microsoft.AspNetCore.Components.WebAssembly.dll:token 0x60000bd+0x1be
Run Code Online (Sandbox Code Playgroud)

还应该更改哪些内容才能启用热重载功能?