circumstances
- managed workflow
- VERSION eas-cli/5.4.0 linux-x64 node-v16.18.0
- SDK 49
- platform: android
problem
I have this Development build of my super basic app that works as expected.
However, when trying to build with the Preview build profile, whose only difference is developmentClient
set to false
, the app won’t make any request to my own API, while it would work ok with the 3rd party auth server.
please find below my very simple eas.json
file:
{
"cli": {
"version": ">= 5.4.0"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal",
"android": {
"buildType": "apk"
}
},
"production": {}
},
"submit": {
"production": {}
}
}
what have I tried so far
- I read the docs
and followed the recommended approach to debugging e.g. running the app with
npx expo start --no-dev --minify
- checked all the possible server logs (nginx, gunicorn) and I can confirm that:
- when the app is run via Expo Go or DevBuild all the requests reach the backend server
- when the app is run as a Preview build, no requests appear in any log file
- I excluded that the environment variables had anything to do with this, to the point that I had hardcoded them in the codebase to rule out any importing issues
- checked the EAS build logs: the only suspicious thing is Expo Doctor failing (which happens either in Development and Preview builds)
✖ Check that native modules use compatible support package versions for installed Expo SDK
Detailed check results:
Expected package @expo/config-plugins@~7.2.2
Found invalid:
@expo/config-plugins@6.0.2
@expo/config-plugins@6.0.2
(for more info, run: npm why @expo/config-plugins)
Some dependencies are incompatible with the installed expo version:
expo-auth-session@4.1.0 - expected version: ~5.0.2
Your project may not work correctly until you install the correct versions of the packages.
Fix with: npx expo install --fix
Found outdated dependencies
One or more checks failed, indicating possible issues with the project.
Advice: Upgrade dependencies that are using the invalid package versions.
Advice: Use 'npx expo install --check' to review and upgrade your dependencies.
Command "expo doctor" failed.
npx -y expo-doctor exited with non-zero code: 1
I know that I am running an outdated expo-auth-session version. This is because upgrading to the latest version would break my app with SDK 49. Still it seems to me that this isn’t the culprit of the malfunctioning as the login/logout logic works with any build.
Being relatively new to Expo I would appreciate any help, thanks