OS: Windows 10
Node: 8.4.0
Yarn: 1.3.2
npm: 5.5.1
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: 0.55.3 => 0.55.3
react-native init MyAppbabel-plugin-transform-class-properties (^6.24.1) and stage-0react-native and the es2015 presets// babelrc
{
"presets": ["stage-0", "react-native", "es2015"],
"plugins": ["transform-class-properties"]
}
gradlew assembleReleaseDo not cahnge any code, just build after adding the listed presets and plugins to the
.babelrcand installing them vianpm
Note that: Everything is working while debugging
When run:
I expect everything just to work!
The app is built successfully but when we install the app on whatever device we get The app stopped working. error. I researched it a bit and found this log in the logcat:
FATAL EXCEPTION: mqt_native_modules
Process: com.PACKAGE, PID: 13125
com.facebook.react.common.JavascriptException: Maximum call stack size exceeded., stack:
<unknown>@11:410
<unknown>@11:410
I searched a bit and find out these things (which may be helpful while resolving the issue):
package.json file, shown here: https://stackoverflow.com/questions/46170844/maximum-call-stack-size-exceeded-in-react-native, DIDN'T WORK FOR MEstage-0 preset and the plugin are removed, but in my case I need them.Hopefully all listed information will be helpful.
react-native-git-upgrade 0.49.5
Hi, @alvelig! Can you please explain why react-native-git-upgrade to 0.49.5 can help?
It helped in my case. According to https://github.com/facebook/react-native/issues/16689 this doesn't happen in 0.49.5, so just downgrading helped in my case
@alvelig thanks. I'm not able to test it at the moment, but I'm gonna share if succeed with 0.49.5.
Also question to the "react native team": if this works with 0.49.5 what's the problem in the next versions?
@TheSavior, @shergin, @brentvatne Can someone share any opinion, please?
https://github.com/facebook/react-native/releases/tag/v0.50.0 Then it should be there. Also try if it works in 0.50 just to confirm, then some of the breaking changes should be causing this.
Removing presets worked for me . I was using "@connect" decorator after removing presets and leaving only "react-native" all works just fine.
Yeah, that's the case, @Vahanerevan but I needed it with presets working.... 馃槥
this is not possible to solve in the described way I removed all the @connect decorators still I am getting erros and I can not remove stage0 presets because react-navigation starts giving errors. So this is catch 22. Can someone please look into this problem.
Also I tried changing my version to 49.5 I am getting exactly same error I can test my app but not release it .
I'm now seeing this issue in 0.56.0. I do have a lot of resolutions to fix the babel upgrade though...
Only happening with prod builds, --dev is fine.
@sebirdman Any solution worked for you? I am seeing the error below only on Prod builds.
08-27 20:47:42.675 23560-23586/? E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
Process: catWheels.main, PID: 23560
com.facebook.react.common.JavascriptException: Invalid attempt to spread non-iterable instance, stack:
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.
Most helpful comment
I'm now seeing this issue in 0.56.0. I do have a lot of resolutions to fix the babel upgrade though...
Only happening with prod builds, --dev is fine.