0

I am trying to deploy a React.js/Vite project through Github but I am getting a blank page with the following error: "Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/jsx". Strict MIME type checking is enforced for module scripts per HTML spec." Here is the blank page.

Does anyone know where the issue lies?

I've tried this solution but it didn't work.

1 Answer 1

0

I had this same problem and I solved it by changing the branch to the gh-pages in Github project settings

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.