-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Fix issue undefined is not an object evaluating r.default #4699
Conversation
NavigationPlayground for ddcce38 has been deployed.
|
I'm confused why this would fix anything.. what bundler are you using? |
Standard metro bundler... I do not know what really happens as you can see in aksonov/react-native-router-flux#3124 but what I'm sure of is that it fixes the encountered issue for me and other people! |
thanks for submitting a pr! although this seems to fix your problem, i'm hesitant to land something that works without any reason that anyone can understand. it seems more like a bug in another tool. |
I understand @brentvatne but it's a really minor change that could avoid me and others folks still using react-native-router-flux to fork react-navigation. That's the only workaround found yet... |
sorry unless someone can explain why this fixes the problem we cannot land it. the diff on its own makes no sense |
@brentvatne https://babeljs.io/docs/en/babel-plugin-transform-class-constructor-call |
We have now our root cause, could we merge? :) |
Please @brentvatne could you reopen this PR? Thanks. |
thanks! yes |
I updated my react-navigation package with this above fix in all the files: but still getting the same issue in release mode: |
cc @ebaynaud |
I solved the same issue by: facebook/react-native#20150, Workaround 2 |
@ebaynaud Thanks for the fix. I am now able to compile release build successfully. @rishiankush Did you update all files? I see 4 files are changed but you only mentioned 3. cc: @brentvatne |
if someone can confirm that this works as expected i can land it and publish an update to 1.x |
@brentvatne I can confirm this is working. I have been building release builds for IOS and Android using the following "git+https://github.com/ebaynaud/react-navigation#1.x" in my package.json for about 3 weeks now. |
I'm getting this on v2 as well. |
please create a new issue and follow the template @luco |
Fix aksonov/react-native-router-flux#3124
Please provide enough information so that others can review your pull request:
Motivation
Release builds fails without these changes
Test plan
No more errors
Code formatting
Simple letter put from uppercase to lowercase
Changelog
Not required I guess