-
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
react-timer-mixin
throws errors in production (_setter is not a function)
#20171
Comments
react-timer-mixin
throws errors in production (_setter is not a function)
Uhm, wait a second: you mention
but then you write
This is not how you create a release bundle for iOS. |
Yes, but this is how I manage to have a "release" non-uglified version on the device, so I can see where the error actually comes from. |
Anyway, I manually patched Metro, and I can confirm that facebook/metro#197 fixes it! Seems like the whole transition to the new babel introduced lots of issues, but this looks like the last of them. |
Uhm that's weird, but I guess that if it works it's great to learn this approach 🎉 Anyway, thanks for the feedback for that metro issue - hopefully a new minor metro release will fix, which potentially means that it won't be even needed to create a 0.56.1.
Not sure about this, I mean I think this fix may help a lot with the other open issue which is a big one since it influences the release builds. |
Yes it looks like all the issues until now are fixed by metro updates, no need for RN release. I say that it looks like the last of them because I'm working on something with some friends, and a release based on 0.56 had lots of problems to get to an actual working version on a device - but now after solving this one it actually works. And it's an app with lots of native modules, customized stuff for iOS and Android, weird optimizations and so on. If it's working, then most other apps will probably work 😆 |
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. |
Environment
Description
When bundling for release on iOS, many some elements crash the app by just being there.
An error report gave an unreadable junk, but I managed to reproduce it on a "debug" version with full stack trace.
react-timer-mixin
is loaded inListView
,TextInput
,TouchableWithoutFeedback
.Now
react-timer-mixin
tries to wrap timing functions. I thought that becausesetImmediate
which specifically isn't available on iOS Safari, maybe it's failing on that, but it doesn't.I managed to print out some data, pointing out that
setImmediate
is available, andrequestAnimationFrame
as well.The function in
react-timer-mixin
is this:and there are 4 calls to it:
Reproducible Demo
Let us know how to reproduce the issue. Include a code sample, share a project, or share an app that reproduces the issue using https://snack.expo.io/. Please follow the guidelines for providing a
<TextInput />
on the screenThe text was updated successfully, but these errors were encountered: