-
Notifications
You must be signed in to change notification settings - Fork 904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: packager starting when using run-ios and run-android #2198
Conversation
I was just about to put up the same fix before I saw this PR. Users are running into this now that 0.73 is out. The fix looks sound to me. The old code used to mutate the configured value of Let's get this merged and picked into 13.x. CC @thymikee. |
Tests failing because major RN version was bumped, fixed in #2200 |
Does not appear to be fixed in 0.73.2 https://github.com/facebook/react-native/blob/main/CHANGELOG.md#v0732 |
@RayHughes, it should be. 0.73.2 contains CLI v12.3.0, but this fix was released in v12.2.1 🤔 |
I'm on MacOS. This is what I get in both native terminal and Jetbrains. |
@RayHughes as the error says, we cannot find terminal to start script in. please try providing |
Summary:
When the packager is not running
findDevServerPort
returnsstartPackager = false
which is not what we want. Changing the initial value ofstartPackager
fixes it (we could also add a branch to check for not_running state but it seemed redundant).Test Plan:
Tested this patch in an app on RN 0.73 and made sure packager starts when running cli on iOS and Android.
Checklist