Replies: 1 comment
-
You probably get an html file because the file was not found, maybe your not correctly serving the dist folder? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am deploying my react app in AWS S3 bucket.
Everything works fine locally but each time a new build is deployed, then i get the error as :
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html" in Chrome
and
Loading failed for the module with source “https://dev.[myappwebsitename].com/assets/index-9af34c50.js”. in firefox
Here is my vite.config.ts"
Here is my package.json scripts:
I have tried following solutions:
Please review and provide possible solutions.
Beta Was this translation helpful? Give feedback.
All reactions