Skip to content

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

@Dancpaz

Description

@Dancpaz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions