skip to Main Content

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

2

Answers


  1. Open the browser window and right-click to select inspect. In the inspect tab, click on the console to see the error message and fix it.

    Login or Signup to reply.
  2. /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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search