Logging icon indicating copy to clipboard operation
Logging copied to clipboard

AddBrowserConsole() causes circular dependency in server-side blazor

Open Dancpaz opened this issue 4 years ago • 3 comments

Environment:

  • Windows 10
  • Microsoft Visual Studio 2019 Professional
  • .NET 5
  • Blazor.Extensions.Logging 2.0.4

Steps to reproduce:

  1. Create a new server-side Blazor project.
  2. Install the Blazor.Extensions.Logging package.
  3. In Startup.ConfigureServices, create your call to services.AddLogging, including a call to AddBrowserConsole.
  4. Run the application.

What should happen: The application starts without problems.

What actually happens: The DI engine throws an exception because of a circular dependence issue involving IJSRuntime, preventing the application from starting.

Dancpaz avatar Aug 13 '21 15:08 Dancpaz

Is there an update on this? Or have you moved on to another logging package? If so, which one?

mkuzminski avatar Aug 08 '23 17:08 mkuzminski

Having the same issue with Blazor Server using version 2.0.4

jwboon-vconsyst avatar Oct 13 '23 09:10 jwboon-vconsyst