Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Blazor WebAssembly Javascript isolation Error

$
0
0

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", "https://maps.googleapis.com/maps/api/js?key="); await ObjectReference.InvokeVoidAsync("initGoogleMap", "GoogleMapDiv", BlazorPageRef, "GoogleMapErrorDiv", googleMApKey);

Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>