Search code examples
reactjsvitenetlify

Blank screen on netlify after a react or a vite deploy


I started learning React.js and Vite, but everytime I try to deploy a vite or react website on netlify it's always a blank screen or a "page not found"

i have tried so many things to fix it but nothing seems to work, what should I do??? My script


Solution

  • /src/main.jsx:1 load module script: Expected a JavaScript module script but the server responded with a MIME type of "application/octet-stream". Strict MIME type checking is enforced for module scripts per HTML spec.

    Browsers cannot run .jsx scripts.

    On Netlify, you can configure build command, and change publish directory to the output directory.