You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constERROR=`a dev server manually by running ${chalk.bold(
9
+
'npm start',
10
+
)} or ${chalk.bold('yarn start')} in other terminal window.`;
7
11
8
12
functionstartServerInNewWindow(
9
13
port: number,
@@ -12,9 +16,11 @@ function startServerInNewWindow(
12
16
terminal?: string,
13
17
){
14
18
if(!terminal){
15
-
thrownewCLIError(
16
-
'Cannot start server in new window because no terminal app was specified.',
19
+
logger.error(
20
+
'Cannot start server in new windows because no terminal app was specified, use --terminal to specify, or start '+
21
+
ERROR,
17
22
);
23
+
return;
18
24
}
19
25
20
26
/**
@@ -73,10 +79,12 @@ function startServerInNewWindow(
73
79
);
74
80
}
75
81
}catch(error){
76
-
returnnewCLIError(
77
-
`Couldn't copy the script for running bundler. Please check if the "${scriptFile}" file exists in the "node_modules/@react-native-community/cli-tools" folder and try again.`,
82
+
logger.error(
83
+
`Couldn't copy the script for running bundler. Please check if the "${scriptFile}" file exists in the "node_modules/@react-native-community/cli-tools" folder, or start `+
84
+
ERROR,
78
85
errorasany,
79
86
);
87
+
return;
80
88
}
81
89
82
90
if(process.platform==='darwin'){
@@ -109,8 +117,10 @@ function startServerInNewWindow(
109
117
stdio: 'ignore',
110
118
});
111
119
}
120
+
112
121
logger.error(
113
-
`Cannot start the packager. Unknown platform ${process.platform}`,
122
+
`Cannot start the packager. Unknown platform ${process.platform}. Try starting `+
0 commit comments