Shopify CLI php app deploy instance MIME error.

I have successfully created build and deploy on the EC2 instance.

app is installed successfully on the store but i am getting error to access the app interface. I am getting below MIME error in the console

Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of “text/html”. Strict MIME type checking is enforced for module scripts per HTML spec.

I have tried with necessary changes in the code but not working

Could you please help what is the issue. I have spent lot of time on it to resolve but not getting any solution.

were you able to solve this issue? i’m having the same error