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
Copy file name to clipboardExpand all lines: packages/host/src/node/cli/hermes.ts
+6-11Lines changed: 6 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -93,17 +93,12 @@ export const command = new Command("vendor-hermes")
93
93
},
94
94
);
95
95
}catch(error){
96
-
if(errorinstanceofSpawnFailure){
97
-
error.flushOutput("both");
98
-
console.error(
99
-
`\n🛑 React Native uses the ${hermesVersion} tag and cloning our fork failed.`,
100
-
`Please see the Node-API package's peer dependency on "react-native" for supported versions.`,
101
-
);
102
-
process.exitCode=1;
103
-
return;
104
-
}else{
105
-
throwerror;
106
-
}
96
+
thrownewUsageError("Failed to clone custom Hermes",{
97
+
cause: error,
98
+
fix: {
99
+
instructions: `Check the network connection and ensure this ${chalk.bold("react-native")} version is supported by ${chalk.bold("react-native-node-api")}.`,
0 commit comments