net6.0: Runtime error: invokeJSFromDotNet creating HostBuilder #38625
Labels
area-blazor
Includes: Blazor, Razor Components
feature-blazor-jsinterop
This issue is related to JSInterop in Blazor
feature-blazor-wasm
This issue is related to and / or impacts Blazor WebAssembly
Hello,
This error has ruined my entire day and as a last resort I am posting here.
My project was using net5.0 and I have recent updated to 6.0 - Are there any additional migration steps from 5 to 6?
I would also like to ask where can I find the unminified source for
blazor.webassembly.js
?If you look at the bottom it say the error is on line 16 which is
var builder = WebAssemblyHostBuilder.CreateDefault(args);
The stack trace also says
InitializeNavigationManager
- The main component is doing JS Interop insideOnAfterRenderAsync
but I don't think it's getting this far.I have absolutely no idea.
Any ideas what I can do to help solve?
The error appears at runtime in the Dev console of the browser:
(I am using Parcel for bundling, hence the filename
index.abc.js
)The text was updated successfully, but these errors were encountered: