Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of “module/javascript”. Strict MIME type checking is enforced for module scripts per HTML spec.
Other Information
When i go to the file by typing the directory, it forces me to download the index-.js file for some reason.
also i alread did this (with also text/javascript) as well as the react app that i uploaded is built
Judging by the error message, it seems that your Javascript file has the MIME type module/javascript. But that doesn’t seem like a real MIME type, and not something our server should respond with.
I checked your website and I don’t see any errors like that there. Can you please share the full link to the file for which the server responds with the bad MIME type?
wydm, the root of the website is literally white screen because of the error. https://dashboard-test.infinityfreeapp.com/
i routed the react folder with the htaccess and it renders, but for some reason it cant load the main index file causing the white screen. is there a file size limit or anything?
Another weird thing is that it makes me download the index file when I look at it. its like the server is treating it a downloadable binary
I didn’t see the error on your website. I found other problems, though.
The webpage will be rendered empty when visited without the https protocol (Edit: Probably it’s because of the network cache).
CORS problem was detected from a certain network request (i.e: http:://localhost/api/charts/v1).
The index.html page does not work. A 404 error is being emitted from the page. The website will only work if you try to access it without /index.html at the end of the URL (Edit: The .htaccess file might have caused it).
Yes, a 10MB limit was imposed on every file. The file is going to be deleted if the size reaches beyond the limit. However, that was not the reason why the page got rendered empty. Let’s assume that the file has been deleted due to a violation of the file size. Unless you had changed the default 404 page provided by Infinityfree with your own, you should not have seen an empty page in the first place.
It was working now thanks, apparently i just have to wait for my website to refresh after adding SSL certificate to it. also the CORS error was intended as i was just trying to see if my react will be rendered along side a server
Yes, i forgot to change it in my env file when i was building it, but it isnt what im testing, i was just trying to see if I can render my react app along with the server. Ill change the env config once im sure its working, thankss