The type or namespace IJSObjectReference could not be found
问题 I just started Blazor. I am trying to invoke a javascript function from a razor partial class. using Microsoft.JSInterop; public partial class Counter { [Inject] IJSRuntime js { get; set; } IJSObjectReference module; [JSInvokable] public async Task IncrementCount() { module = await js.InvokeAsync<IJSObjectReference>("import", "./js/Counter.js"); await module.InvokeVoidAsync("displayAlert", "New message"); } } I get the following error The type or namespace IJSObjectReference could not be