From 9db347fabca19c66f669faf4054c81cc3624be03 Mon Sep 17 00:00:00 2001 From: "Mr. Anonymous" Date: Mon, 25 Mar 2019 07:19:41 -0700 Subject: [PATCH] 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 https://github.com/facebook/react-native/issues/23908#issuecomment-475889443 [Android] [Fixed] - projectRoot in launchPackager.bat Pull Request resolved: https://github.com/facebook/react-native/pull/24115 Differential Revision: D14597101 Pulled By: cpojer fbshipit-source-id: fb4155b72e35062cfb41fe1b3ecca0e2b4e849ce --- scripts/launchPackager.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/launchPackager.bat b/scripts/launchPackager.bat index 1420b8b50dd638..377d1f7d3ae284 100644 --- a/scripts/launchPackager.bat +++ b/scripts/launchPackager.bat @@ -6,6 +6,6 @@ @echo off title Metro Bundler call .packager.bat -node "%~dp0..\cli.js" --reactNativePath ../ start +node "%~dp0..\cli.js" --reactNativePath ../ --projectRoot ../../../ start pause exit