Doesn't work on server side Blazor
See original GitHub issueSteps do reproduce:
- Create a new server side blazor project (template from vs 16.2 preview)
- On ConfigureServices, add the di:
services.AddRazorPages();
services.AddServerSideBlazor();
services.AddBlazorStyled(isDevelopment: true);
services.AddSingleton<WeatherForecastService>();
when you try to run the project: InvalidOperationException: Cannot consume scoped service ‘Microsoft.JSInterop.IJSRuntime’ from singleton ‘BlazorStyled.Internal.StyledJsInterop’.
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
UseExceptionHandler Blazor server-side not working
I'm new at Blazor development and I have the problem that I'm not able to test or to make the Error Page to...
Read more >Blazor server app not working when deployed, works fine ...
I have a Blazor server-side project which I've been developing in Visual Studio 2019, using .NET5. All has been working fine.
Read more >ASP.NET Core Blazor hosting models
Razor components can run server-side in ASP.NET Core (Blazor Server) versus client-side in the browser on a WebAssembly-based .
Read more >IE11 fails to load a (server-side) Blazor web app
So, as shown in the article's image, when trying to access your web application using IE11, the page doesn't load at all. It's...
Read more >Understanding Server-Side Blazor
Introduction. Blazor is a .NET Core web framework that runs C# code on the browser using WebAssembly. It offers an alternative to JavaScript ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks to help from the nice folks on Gitter, got a blank library, CSB, and SSB project all working. Should be able to get a new build out tonight or early tomorrow morning
This now works. Will make a build soon and update the docs for SSB differences. Which needs to work like this: