[8.0.100-preview.5.23276.4] DotNet.jsCallDispatcher.disposeJSObjectReferenceById is missing from blazor.server.js #48513
Labels
area-blazor
Includes: Blazor, Razor Components
bug
This issue describes a behavior which is not expected - a bug.
Milestone
Is there an existing issue for this?
Describe the bug
When run the 3rd party apps against the latest .NET 8 Preview 5 build, pages fail to load with Microsoft.JSInterop.JSException that Could not find 'DotNet.jsCallDispatcher.disposeJSObjectReferenceById'
Application Name: BlazorBlogs, Blazorise
OS: Windows 10 21H2
CPU: X64
.NET Build Number: dotnet-sdk-8.0.100-preview.5.23276.4
App source checking at Github Link: https://github.com/ADefWebserver/Blazor-Blogs
or https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1827614
Verify Scenarios:
Expected Behavior
Counter page loads successfully.
Steps To Reproduce
Minimal Repro steps (demo attachedBlazorApp1.zip ):
The machine only has 8.0.100-preview.5.23276.4 installed and set DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX environment variable as 2.
1.Create a default Blazor Server application.
2. Install Toolbelt.Blazor.HeadElement nuget package to project.
3. Register service with this code in Program.cs:
Exceptions (if any)
Counter page loads failed with following error in browser's Console tab or in Visual Studio output window:
.NET Version
8.0.100-preview.5.23276.4
Anything else?
Findings:
After comparing the blazor.server.js file between .NET 7 and .NET 8 Preview.5.23276.4, following code are missing in .NET 8 Preview.5.23276.4:

@dotnet-actwx-bot @dotnet/compat
The text was updated successfully, but these errors were encountered: