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

Cannot consume scoped service 'Microsoft.JSInterop.IJSRuntime' from singleton 'Blazor.Extensions.WebUSB.IUSB'. #8

Open
stalbot123 opened this issue Aug 18, 2020 · 0 comments

Comments

@stalbot123
Copy link

When trying to start the application after installing WebUSB, the app crashes with the following message:
An error occurred while starting the application.
AggregateException: Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: Blazor.Extensions.WebUSB.IUSB Lifetime: Singleton ImplementationType: Blazor.Extensions.WebUSB.USB': Cannot consume scoped service 'Microsoft.JSInterop.IJSRuntime' from singleton 'Blazor.Extensions.WebUSB.IUSB'.)
Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(IEnumerable serviceDescriptors, ServiceProviderOptions options)

InvalidOperationException: Error while validating the service descriptor 'ServiceType: Blazor.Extensions.WebUSB.IUSB Lifetime: Singleton ImplementationType: Blazor.Extensions.WebUSB.USB': Cannot consume scoped service 'Microsoft.JSInterop.IJSRuntime' from singleton 'Blazor.Extensions.WebUSB.IUSB'.

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

1 participant