expo: Running `npx eas-cli@next build --platform ios --profile development` gives error `Cannot destructure property 'expoUsername' of 'undefined' as it is undefined.``
Minimal reproducible example
.
Summary
I have no idea where this expoUsername
comes from. If I understood, I could check what’s up.
Environment
expo-env-info 1.0.5 environment info:
System:
OS: macOS 14.2
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.17.1 - ~/.local/share/rtx/installs/node/18.17.1/bin/node
Yarn: 1.22.19 - ~/.local/share/rtx/installs/yarn/1.22.19/bin/yarn
npm: 9.6.7 - ~/.local/share/rtx/installs/node/18.17.1/bin/npm
Watchman: 2023.12.04.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.14.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.2, iOS 17.2, macOS 14.2, tvOS 17.2, watchOS 10.2
IDEs:
Android Studio: 2023.1 AI-231.9392.1.2311.11076708
Xcode: 15.1/15C65 - /usr/bin/xcodebuild
npmPackages:
babel-preset-expo: ^9.5.2 => 9.5.2
expo: ^50.0.0-preview.1 => 50.0.0-preview.1
react: 18.2.0 => 18.2.0
react-native: 0.73.0 => 0.73.0
Expo Workflow: managed
About this issue
- Original URL
- State: closed
- Created 7 months ago
- Comments: 32 (8 by maintainers)
Commits related to this issue
- fix yarn.lock but still, eas broken (https://github.com/expo/expo/issues/25894#issuecomment-1928180438) — committed to PiTiLeZarD/down-the-log by PiTiLeZarD 5 months ago
Fixed by deleting
@expo/config-plugins
, then removing node_modules and my lockfile and reinstalling everything.expo-doctor
complained about some old packages, now it is all green. I hope this helps!Could you elaborate on this? Are you referring to
eas-cli
version 6.1.0?What
dependencies
anddevDependencies
do you have installed? Do you have anyoverrides
orresolutions
inpackage.json
?Thank you @wodin, it was in fact
config-plugins
in ourresolutions
that was causing this. You’re a ⭐️Also, is
npx expo-doctor
happy?Me: “Come on man, don’t you think we all thought of that?” Also me: “rm -Rf node_modules && yarn… oh shit it worked!”
Cheers for the reminder mate 😉
I am experiencing the same problem after upgrading to eas 7.2.0 (because of the apple developer API bug/change). The error only appears when trying to build for ios, with android as a target it works like intended.
This is my expo info. Please note that I am not on Expo 50 yet and are also not using config-plugins (the version used internally is AFAIK 6.0.1).
Hey, so my turn:
I’ve just upgraded expo 49 -> 50 and I get this now as well. I do not have config-plugins or eas-cli specified in my package.json, eas-cli is version 7.1.2 installed globally, expo-doctor is happy, npx expo install --fix is happy, nothing in resolutions either, I’ve removed nodes-modules and yarn.lock and re-installed everything. Metro and the web run well, but running:
Not quite sure what to do now 😕
the env-info:
Any help would be gratefully appreciated here
Ouch, I had this happen too.
I had left everything else alone, was using the absolute latest
eas-cli
, but had upgradedexpo-updates
from~0.18.16
to the latest, where mypackage.json
said^0.24.9
. In my case it might have been triggered by a compatibility issue.To fix my issue (probably temporarily until I have to update all of Expo) I downgraded it back to
~0.18.16
.What dependencies and devDependencies do you all have installed?
If you have
@expo/config-plugins
oreas-cli
installed as dependencies/devDependencies, uninstall them.I am not sure if the above will fix this problem, but you should not have those installed as direct dependencies of your app anyway.
@expo/config-plugins
will be pulled in automatically byexpo
andeas-cli
should be installed globally@corasan nope just waiting till it’s out of beta to upgrade, hopefully it will be resolved by then. There were several other issues too along with this one so not worth the trouble to upgrade now imo.
+1 experiencing the same issue trying to upgrade from expo
^49.0.18
to^50.0.0-preview.4
. @pvinis did you end up finding a solution to this?