Skip to content
Advertisement

Tag: mime-types

Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of “text/html”

I deployed my angular application(Static webpage) on kubernetes and tried launching it from Google Chrome. I see app is loading, however there is nothing displayed on the browser. Upon checking on browser console , I could see this error “Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of “text/html”. Strict

failed to load wasm application

I’m trying to host a website, and I use a .wasm file with .js scripts created by the wasm-pack tool. I tested the project locally with npm and node.js and everything worked fine. But Then I hosted it on a raspberry (apache2), and when I try to access it, I get in the following error: Failed to load module script:

GeoJSON file: Refused to execute script from because its MIME type (”) is not executable, and strict MIME type checking is enabled

My web application has a folder named “data” which has .geojson files. When I tried to access my website from Chrome I can see all .geojson files loaded with “200 OK response” Please find below screenshot. But when I see console logs I am getting “Refused to execute script from because its MIME type (”) is not executable, and strict

MIME type (‘text/html’) is not a supported stylesheet MIME type

I have tried almost every solution for the problem which includes. giving type for <link rel=”stylesheet” href=”./style.css” /> use of app.use(express.static(‘public’)) and many more but it seems I am not able to find a solution for this. index.js : index.html : webPack.config.js : package.json script tag : npm strat is working fine the application is working fine, but when i

Advertisement