Skip to content

Commit 775553b

Browse files
Mr. Anonymouskelset
authored andcommitted
Update projectRoot in launchPackager.bat (#24115)
Summary: `launchPackager.bat` starts metro server but does not pass projectRoot to it. So metro server starts in the wrong directory, It is because `startServerInNewWindow` pass `react-native` directory instead of `projectRoot` in the third argument of `spawn()` in `runAndroid.js` Its working for people See #23908 (comment) [Android] [Fixed] - projectRoot in launchPackager.bat Pull Request resolved: #24115 Differential Revision: D14597101 Pulled By: cpojer fbshipit-source-id: fb4155b72e35062cfb41fe1b3ecca0e2b4e849ce
1 parent 581dc3e commit 775553b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/launchPackager.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
@echo off
77
title Metro Bundler
88
call .packager.bat
9-
node "%~dp0..\cli.js" --reactNativePath ../ start
9+
node "%~dp0..\cli.js" --reactNativePath ../ --projectRoot ../../../ start
1010
pause
1111
exit

0 commit comments

Comments
 (0)