-
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
[Android] Using relative paths for ENTRY_FILE
now end up in build failure
#36186
Comments
Does the file |
It is exists in the root folder, which is were Now it expects the path of the entry file to be relative to the android root: |
ENTRY_FILE
now end up in build failure
Summary: Fixes facebook#36186 Changelog: [Android] [Fixed] - ENTRY_FILE should resolve relative paths from root Differential Revision: D43392121 fbshipit-source-id: 0b3a704e764ac620ab3c935270041e7db8f17ee2
@cortinico Thank you very much for looking into this! Cheers 🍻 |
…6193) Summary: Pull Request resolved: facebook#36193 Fixes facebook#36186 Changelog: [Android] [Fixed] - ENTRY_FILE should resolve relative paths from root Reviewed By: cipolleschi Differential Revision: D43392121 fbshipit-source-id: ddf302d333c5fc5f822e0635a73e5b52470140ee
A similar error shows in react-native 0.71.11 (" |
I was able to solve this error by setting the entryFile path inside |
in my case i had to add react {
entryFile = file("../../index.tsx")
} but I've got more android modules in my project so for others path may be |
change index.ts or index.tsx to index.js |
how to skip bundle generation step? i have a brown field android app,and my React-Native code is in another project,when integration with react native, i have this error. |
did you found any solution? |
see #44035 |
Description
Before bb02ccf we were able to run
ENTRY_FILE="./index.custom.js" npx react-native android --variant="release"
but now I get:It seems that the entry file is now resolved relative to the android root project. Not sure if this was intended.
Version
0.71.3
Output of
npx react-native info
Steps to reproduce
Build release variant while passing in relative path for ENTRY_FILE.
Snack, code example, screenshot, or link to a repository
The text was updated successfully, but these errors were encountered: