I’m having trouble rendering the frontend `(https://main--bytefront.netlify.app/)
Consoler Error is saying:
Failed to 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.
I have set Babel and mime types in the root directory but my react app still not getting rendered at all. I don’t know what to do.
If you need to give more data I will gladly give it to you
@Sovalle93 You aren’t really dealing with a mime type issue, that’s just how the issue is presenting itself.
If you view the source of your deployed page you see:
Notice how the script tag has a src
of /src/main.jsx
That indicates that you’ve not run a build, and have inadvertently deployed your source code.
Further confirmation of that is that your package.json
file has been deployed:
https://main–bytefront.netlify.app/package.json
You need to configure your Build settings as appropriate for your project, it doesn’t happen automatically. Read the documentation and at a minimum set the appropriate Build command and Publish directory.