Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AddBrowserConsole() causes circular dependency in server-side blazor #66

Open
Dancpaz opened this issue Aug 13, 2021 · 3 comments
Open

Comments

@Dancpaz
Copy link

Dancpaz commented Aug 13, 2021

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.

@mkuzminski
Copy link

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

@jwboon-vconsyst
Copy link

Having the same issue with Blazor Server using version 2.0.4

@bootzin
Copy link

bootzin commented Aug 29, 2024

Still not fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants