I am trying to convert a .net 7 Blazor WebAssembly app over to .net 8 but the code inside of the program.cs file (on the client side) never gets run. Consequently, absolutely nothing works. I can't even inject a dependency somewhere because I cant register it in the first place.
This isn't just happening in the app I'm trying to convert either. Creating a new project also has the problem. Here is an example project that contains the issue:
https://github.com/SIBUK/BlazorBug
If you compile and run the app then click on the Counter link it will immediately crash because it tries to inject 'AppService' but it cant do for the reason outlined above.
What is going on here?