Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript interop error #8

Open
chouteau opened this issue May 7, 2024 · 1 comment
Open

Javascript interop error #8

chouteau opened this issue May 7, 2024 · 1 comment

Comments

@chouteau
Copy link

chouteau commented May 7, 2024

I encountered a JavaScript error while recycling a Blazor site on .NET 8.03.

Stack :

Failed to execute 'querySelector' on 'Document': '#-0rSH5JqnU > DIV:nth-of-type(1) > INPUT:nth-of-type(1)' is not a valid selector. Error: Failed to execute 'querySelector' on 'Document': '#-0rSH5JqnU > DIV:nth-of-type(1) > INPUT:nth-of-type(1)' is not a valid selector. at loadUIState (https://admin.staging.stockasso.com/_content/StatefulReconnection/StatefulReconnection.razor.js:72:35) at Module.init (https://admin.staging.stockasso.com/_content/StatefulReconnection/StatefulReconnection.razor.js:10:5) at https://admin.staging.stockasso.com/_framework/blazor.server.js:1:3244 at new Promise () at y.beginInvokeJSFromDotNet (https://admin.staging.stockasso.com/_framework/blazor.server.js:1:3201) at Yt._invokeClientMethod (https://admin.staging.stockasso.com/_framework/blazor.server.js:1:60713) at Yt._processIncomingData (https://admin.staging.stockasso.com/_framework/blazor.server.js:1:58188) at Yt.connection.onreceive (https://admin.staging.stockasso.com/_framework/blazor.server.js:1:51829) at s.onmessage (https://admin.staging.stockasso.com/_framework/blazor.server.js:1:79974)
at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args)
at Microsoft.JSInterop.JSObjectReferenceExtensions.InvokeVoidAsync(IJSObjectReference jsObjectReference, String identifier, Object[] args)
at Microsoft.AspNetCore.Components.Web.StatefulReconnection.OnAfterRenderAsync(Boolean firstRender)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)

@chouteau chouteau changed the title Javascript Javascript interop error May 7, 2024
@CodeFontana
Copy link

It's my understanding that this repository is designed for Blazor on .NET 6 & 7, and is not compatible with the changes made in .NET 8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants