dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
34.89k stars 9.85k forks source link

Problem With some extensions like tronlink #56512

Closed anik76 closed 1 week ago

anik76 commented 3 weeks ago

Is there an existing issue for this?

Describe the bug

in blazor .net 8 web app sample on google chrome when tronlink extension is on app not working and console show errors: blazor.web.js:1 [2024-06-28T16:42:46.352Z] Error: There was an error applying batch 2. blazor.web.js:1 [2024-06-28T16:42:46.358Z] Error: There was an error applying batch 3. blazor.web.js:1 [2024-06-28T16:42:46.414Z] Error: System.AggregateException: One or more errors occurred. (TypeError: Cannot read properties of null (reading 'insertBefore')) ---> System.InvalidOperationException: TypeError: Cannot read properties of null (reading 'insertBefore') at Microsoft.AspNetCore.Components.RenderTree.Renderer.InvokeRenderCompletedCallsAfterUpdateDisplayTask(Task updateDisplayTask, Int32[] updatedComponents) --- End of inner exception stack trace ---

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

blazor.web.js:1 [2024-06-28T16:42:46.352Z] Error: There was an error applying batch 2. blazor.web.js:1 [2024-06-28T16:42:46.358Z] Error: There was an error applying batch 3. blazor.web.js:1 [2024-06-28T16:42:46.414Z] Error: System.AggregateException: One or more errors occurred. (TypeError: Cannot read properties of null (reading 'insertBefore')) ---> System.InvalidOperationException: TypeError: Cannot read properties of null (reading 'insertBefore') at Microsoft.AspNetCore.Components.RenderTree.Renderer.InvokeRenderCompletedCallsAfterUpdateDisplayTask(Task updateDisplayTask, Int32[] updatedComponents) --- End of inner exception stack trace ---

.NET Version

8

Anything else?

No response

javiercn commented 2 weeks ago

@anik76 thanks for contacting us.

Do any of these extensions manipulate the DOM In any way? Can you provide links to these extensions in the chrome extensions web store?

anik76 commented 1 week ago

The extension link in chrome web extension store

Tron link extension

javiercn commented 1 week ago

@anik76 thanks for contacting us.

This points out to this extension modifying the DOM in ways not supported by Blazor. This is a problem with this extension rather than a Blazor issue.

anik76 commented 1 week ago

Thanks.

Blazor .net6 is ok with this extension. And website users can't find out the problem source easily

dotnet-policy-service[bot] commented 1 week ago

This issue has been resolved and has not had any activity for 1 day. It will be closed for housekeeping purposes.

See our Issue Management Policies for more information.