omnitechie
omnitechie
CDCloudflare Developers
Created by omnitechie on 8/27/2024 in #general-help
Issue with incorrect MIME type/404
I FINALLY fixed this issue and the script is now working. Leaving this answer here for anyone else who finds it, maybe the Cloudflare team can also have a look because it was very simple: After trying everything, scanning for incorrect paths, stepping through with the debugger, clearing caches, setting headers manually, on a whim I changed the name of the file. I previously thought of this so to test I changed it from “ContactModal” to “contactmodal” thinking any case changings would be enough to trigger/flip any errors related to paths, since it would register as a fresh path. This did not happen, so I figured it was not the issue. However, on a whim I changed the name to be completely unique, from “contactmodal” to “contactoptionsmodal”. And voila, it works. @Cloudflare (Server Owner) pinging you because maybe you can take this to your QA team and resolve the root bug. It seems to be related to how casing of paths are resolved during production, maybe involving the production build cache?
3 replies
CDCloudflare Developers
Created by Zarkino on 4/27/2024 in #pages-help
Loading module from "*.js" was blocked because of disallowed MIME type ("")
Facing this same issue @zarkino did you ever find the root cause?
3 replies