Skip to content

Commit a162554

Browse files
thecodrrfacebook-github-bot
thecodrr
authored andcommitted
Remove unnecessary flag when running JS server (#25517)
Summary: This removes the `--projectRoot` flag in `launchPackager.bat` as it was removed, fixing [this bundler not opening issue on cli repo](react-native-community/cli#484) when `yarn react-native run-android` is run. This is Windows related only so should be only tested on Windows. ## Changelog [Internal] [Fixed] - Fixed Metro Bundler not opening when running `yarn react-native run-android` Pull Request resolved: #25517 Test Plan: 1. Create a new repo using `react-native init` 2. Edit the `launchPackager.bat` file 3. Run `yarn react-native run-android` Differential Revision: D16162108 Pulled By: cpojer fbshipit-source-id: c12d9853ad49f00d56b9a8254a5b2c40a358cb2e
1 parent 5b448ec commit a162554

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/launchPackager.bat

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
@echo off
77
title Metro Bundler
88
call .packager.bat
9-
node "%~dp0..\cli.js" --projectRoot ../../../ start
9+
cd ../../../
10+
node "%~dp0..\cli.js" start
1011
pause
1112
exit

0 commit comments

Comments
 (0)