-
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
Failing to build release APK and IOS on RN v56 #20882
Comments
Bot tagged as IOS but the error is for Android. |
Great, hopefully we get a response very soon |
same issue here |
Just to verify, does running |
react-native run-android -- --stacktrace variant=release The above command is installing the debug version of the app on the simulator and that's why might be working for you. I tried the below command to install the release apk for which it is failing. |
Okay thanks for the clarification you are absolutely right, doesn't work |
@tobiloba23 @raghuureddy @brenohq Any chance you guys are using "react-navigation": "1.5.0" or any 1.X version? Initially I thought my project was set incorrectly but after copying/running the index.js/App,js file from a fresh v56 app, it runs in production build. So this leads me to believe a library we are using isn't compatible with Babel 7. |
@abartolo mine is "react-navigation": "^2.11.2" |
@raghuureddy Thanks, I guess that was not the issue. Currently I am trying to add polyfills or anything suggested in #19827 to see if this helps. |
If it helps, the crash occurs if i select any item in "react-native-multiple-select" component. Only in release mode. |
@raghuureddy Hmm I don't have that library. But I was able to pass this error adding the following code to my index.js file. After adding below I get another error "undefined is not an object (evaluating 'r.default')" index.js
package.json |
@anyone who is having this issue or similar. The error above that I posed was due to 2 errors below.
Good w/ Babel 6 Fix
Error This was fixed after reading aksonov/react-native-router-flux#3124 (comment) and applying the following PR react-navigation/react-navigation#4699 to my local node_modules. |
Note - I had to all my imports and slowly uncomment/build release app until I pinpointed where the code was breaking during babel compiling. |
in my case it was due to empty object spread and I have added a condition to check for empty and below is my pull request. react-native-multiple-select Pull request Its working now in release mode as well. |
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 "For Discussion" or "Good first issue" 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. |
Hello,
I am having issues building release APK and IOS after upgrading to v56. Dev builds work as expected on both android and ios emulators.
I am seeing the following error below only on release builds.
Error
.babelrc
Package.json
React Native Info
The text was updated successfully, but these errors were encountered: