-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hermesCommand in react.gradle uses wrong path - custom folder structure + release build #28126
Comments
@nokite this doesn't seem like a bug seeing as you have a custom directory structure. Have you tried specifying For example: project.ext.react = [
entryFile: "index.js",
enableHermes: true, // clean and rebuild if changing,
hermesCommand: "../node_modules/hermes-engine/%OS-BIN%/hermes", // Or whatever path you need
] I haven't tried this but it looks like it should work :) |
@mjmasn This works, thanks! This makes me think that I could have used better documentation. It would have been useful to find a few words about configuring projects with non-default structure. I had trouble finding out how to properly set it up, and it only added to the headache of upgrading from 0.59.8 to 0.61.5. (as my project structure was not problematic on 0.59.8) |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Description:
My Gradle sync fails when doing a release build on Android since I enabled Hermes. I'm on react-native 0.61.5. Error:
The problem is that it assumes a wrong folder structure and can't find the file. The actual structure has both the "app" and "node_modules" folders at the top, and that's configured in react-native.config.js, hopefully correctly...
React Native version:
Steps To Reproduce
Expected Results
Snack, code example, screenshot, or link to a repository:
The folder structure follows a regular Android project. We use ReactNative only for a small component, so we don't want to modify the whole structure.
Folder structure
react-native.config.js
I believe the issue comes from this line:
react-native/react.gradle
Line 33 in 0e4bcaa
When I change "../../node_modules" to "../node_modules" the build succeeds.
The text was updated successfully, but these errors were encountered: