Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

efthakhar's avatar

loading module blocked due to disallowed MIME type (“text/html”)

Hi there, May be I have made any silly mistake in my project. I have loaded all assets according to the official laravel vite documentation but getting the error message on console for every js file.

"Loading module from “http://localhost/d-blog/build/assets/bootstrap.323731cd.js” was blocked because of a disallowed MIME type (“text/html”)"

0 likes
2 replies
Nsidhaye's avatar

I got similar error. I was using jetstream. Old working project just change one link. Build npm run build and upload in shared directory and got above error. when I revert by old it's working. But if I run vite again it gives me error .

Loading module from “https://xyz/build/assets/app.16ad32ca.js” was blocked because of a disallowed MIME type (“text/html”).

Please or to participate in this conversation.