I am using Blazor Webassembly project.
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
Here is my code.
ObjectReference = await JSRuntime.InvokeAsync<IJSObjectReference>("import", "./js/GoogleMap.js");
//await JsObjectReference.InvokeVoidAsync("loadScript", "=");
await ObjectReference.InvokeVoidAsync("initGoogleMap", "GoogleMapDiv", BlazorPageRef, "GoogleMapErrorDiv", googleMApKey);