I have created a Shopify public application using the Shopify CLI and got a complete source code in react and node, and after installing the application in the Shopify store I’m getting the below errors.
(1) 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.
(2) Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘’) does not match the recipient window’s origin (‘’).
The source code I have got using the CLI is configured with React and vite and it’s using the .jsx extension but Shopify admin doesn’t allow the .jsx extension and my application view is not showing in the Shopify store after installing the application.
Can anyone assist here to resolve the above issues?