chanan / chanan/BlazorStyled

AddBlazorStyled() exception in ASP.NET Core blazor server project

Open
#93 7 comments 0 reactions 0 assignees View on GitHub
bug question
Dominant language
C#
Stars
193
Forks
19
PR merge metrics
No merged PRs in 30d

Description

Hi,
I ran in a little issue with the latest version of this library with .NET Core 3.1. The project was generated with the Visual Studio 2019 wizard. When adding the service via AddBlazorStyled() in Startup.ConfigureServices() the following exception occurs.

> System.InvalidOperationException: "Cannot resolve 'BlazorStyled.IStyled' from root provider because it requires scoped service 'BlazorStyled.Stylesheets.IStyleSheet'."

As IStyleSheet and its implementations are internal elements of BlazorStyled, I am also not able to add the DI object manually.

I think this is a bug?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.