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.Understand this error
Solution
The issue was that the expected dist
files from the GitHub Actions build were missing, due to the build and deploy jobs being separate, which resulted in a lack of artifact sharing between them. To resolve this, you can use the artifact sharing feature as described in the GitHub documentation. Specifically, upload the generated dist
files from the build job and then download those files in the deploy job, enabling the deployment of the built dist
files.