Loading module from "*.js" was blocked because of disallowed MIME type ("")
For the past couple of days I've been trying to create a new deployment, but loading the javascript module is always being blocked because of "disallowed MIME type". This doesn't happen when I run it on localhost or preview the site with
vite preview
.
My build configuration:
The output looks like this:
And the built index.html
looks like this:
This wasn't a problem just some days ago, so maybe I have changed some settings on the Cloudflare Dashboard that I shouldn't have? Any help is appreciated 😄

2 Replies
The issue has solved itself somehow. I tried changing Vite to a previous to see if it that was causing any problems (and that made it work again), so I wanted to confirm that there indeed was an issue with the current version, but then it worked there as well, so I don't know 🤔
Facing this same issue @zarkino did you ever find the root cause?