Skip to content

Commit 7366a86

Browse files
vonovakfacebook-github-bot
authored andcommitted
chore: make CLI error message more descriptive (#32593)
Summary: motivation: I have a custom setup and needed to provide `react.cliPath`. I mistakenly provided path to `react-native-community/cli` which resulted into JS bundle not being generated. This error message provides a little more detail. ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://github.com/facebook/react-native/wiki/Changelog --> [General] [Changed] - Improved error message in react.gradle Pull Request resolved: #32593 Test Plan: I guess it's not needed in this case Reviewed By: ShikaSD Differential Revision: D32427929 Pulled By: cortinico fbshipit-source-id: 2be340a8be15c8ec08873c0368a36b449c8b5030
1 parent a507998 commit 7366a86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

react.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def detectCliPath(config) {
3232
return "${projectDir}/../../node_modules/react-native/cli.js"
3333
}
3434
throw new Exception("Couldn't determine CLI location. " +
35-
"Please set `project.ext.react.cliPath` to the path of the react-native cli.js");
35+
"Please set `project.ext.react.cliPath` to the path of the react-native cli.js file. This file typically resides in `node_modules/react-native/cli.js`");
3636
}
3737

3838
def composeSourceMapsPath = config.composeSourceMapsPath ?: "node_modules/react-native/scripts/compose-source-maps.js"

0 commit comments

Comments
 (0)