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
findDevServerPortreturnsstartPackager = falsewhich is not what we want. Changing the initial value ofstartPackagerfixes 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