Closed cederom closed 3 years ago
Same.
This is a blocker since I can't continue to use expo on macOS M1 arm64.
The purpose of expo eject
is to leave the project in a predetermined, (hopefully) runnable state. To achieve this, we set certain core packages to versions that we know work with the version of expo that a project has.
For the majority of users who don't dig into the native side, we want this behavior and don't plan to change it. I'd be open to reviewing a PR that adds an environment variable to skip updating the package json here: https://github.com/expo/expo-cli/blob/1375d6eea5dd112331244d6800996c62c983b0da/packages/expo-cli/src/commands/eject/updatePackageJson.ts#L78
Thanks @EvanBacon :-) I am embedded developer just need to make some stuff in this crazy mobile cross-platform world :-) So the expo-cli
creates "safe harbor" for the developer but it lags behind the React Native upstream?
I like that approach and I like working with expo
more than directly with react-native
(that is useless to work with over plain ssh
remote connection from my FreeBSD box as it spawns in a separate local terminal). Also I noticed package dependency nightmare here in JavaScript world, so I appreciate expo
just "set things up for me so they work"^TM :-)
Do you have a clue when expo-cli
can catch up to the latest React Native release? Is there any average lag?
@EvanBacon here is an example why we need more recent packages and why this is really important. I am using redux for network communications :-) https://www.wordfence.com/blog/2021/09/over-1-million-sites-affected-by-redux-framework-vulnerabilities/
We'll be upgrading to RN 64 in SDK 43, here is more info on our upgrading reasoning https://github.com/expo/fyi/blob/master/react-native-releases.md
Turns out this can already be accomplished using --skip-dependency-update
.
Use the following to skip all library upgrades:
expo prebuild --skip-dependency-update react,react-native-unimodules,react-native,expo-updates
Sorry for the confusion.
Thank you @EvanBacon looks like end of September brings the update :-)
Summary
After upgrading project packages to most recent one,
expo eject
break packages, thusexpo run:android
andexpo run:ios
stopped working.expo eject
downgrades dependencies and leaves in unusable state.Note that
react-native
itself works fine. I don't really like expo messing around with my packages :-(Please update expo cli to work with recent react packages.
Thank you :-)
Environment
Please specify your device/emulator/simulator platform, model and version
macOS 11.5.2 AMD64 + Android Nexus 5X + iOS iPhone SE
Error output
No response
Reproducible demo or steps to reproduce from a blank project