I have recently migrated from classic build to EAS (well, it was steep learning curve but worth it). Anyhow, now the build for iOS simulator works. Also, a production build works fine in TestFlight. However, even though developer profile build is successfully, it's only briefly showing the splash screen and goes to an error screen immediately on both iOS and Android
.
I am using a managed workflow (custom development client) and eas-cli/3.6.1 darwin-x64 node-v19.6.1, expo version 47.
iOS error:
Expected MIME-Type to be 'application/javascript' or 'text/javascript', but got 'text/html'.

Android error
Unable to load script. Make sure you're either running Metro or that your bundle 'index.android.bundle' is packaged correctly for release

eas.json file:
{
"cli": {
"version": ">= 3.6.1"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal",
"channel": "development",
"ios": {
"resourceClass": "m1-medium"
}
},
"simulator": {
"distribution": "internal",
"channel": "simulator",
"ios": {
"simulator": true,
"resourceClass": "m1-medium"
}
},
"production": {
"channel": "production",
"ios": {
"resourceClass": "m1-medium"
}
}
},
"submit": {
"production": {}
}
}
I have not been able to find anything related to this error despite searching. Does anyone have a lead how to resolve this?
Many thanks!!