Hello first time deployer here: Failed to load module script: Expected a JavaScript-or-Wasm module script but ...
ezjung
FREE
a month ago
Here is the error message.
"index-CetHNqbz.js:1 Failed to load module script: Expected a JavaScript-or-Wasm 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."
It is django channel project and tried first with daphne server, but this fail to retrieve built image by vite. I also tried with gunicorn later, but ended up same error message.
django admin page is displaying correctly which means css file applied correctly, but packed js file by vite not correctly implemented due to the mime type issue.
Is there an option in railway to assign a mime type? Or what would be the fix for this issue? Many thanks in advance!1 Replies
Railway
BOT
a month ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!