Deployed my react app as static, site is live but page is white

Dear Team,

I have this error: Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of “binary/octet-stream”. Strict MIME type checking is enforced for module scripts per HTML spec.

I did the rule of /* index.html redirect

my react app is Vite, not created it with create react app.

site is: https://weatherapp4-pear.onrender.com/

screen shots are added.

BR. Tal

Hi there,

It looks like your index.html file tries to load and return a .jsx file, which is not being recognized by the browser as a valid MIME type (like HTML, JS, etc.). If your React app requires server-side processing it will need to be deployed as a Web Service rather than a Static Site.

Our React Static Site guide may offer some guidance here as well: https://docs.render.com/deploy-create-react-app

Regards,
Mike


Render Support Engineer, MT (UTC-6, UTC-7 in Winter)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.