-
Notifications
You must be signed in to change notification settings - Fork 1.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
babelHelpers.asyncToGenerator is not a function #271
Comments
@niftylettuce This isn't a bug with CodePush, but rather, an issue with the packager when you use a custom Babelrc file. CodePush uses async/await and unfortunately this ends up causing issues, as you've seen with the linked bug. You would hit this issue if using any other library that uses async/await. The only solution that we've found it to either remove your custom babelrc or update the packager's Babel helpers file as mentioned in the RN bug you mentioned. |
I resolved, here was my new
I also ran the packager with Thank you and also thanks to @skevy for help over Slack in ExponentJS. |
For further information, see here: facebook/react-native#4844 (comment) |
I found maybe is the watchman problem, I use the react 0.41.2, it occured this issue, because I install the stage-0, error, so uninstall it, but still. finally, I delete all the project and git clone again, error still their! but same project is good at my PC! so, watchman watch-del-all, rebuild, everything OK!
|
@niftylettuce thanks, your solution works for me. |
Hey — I'm on RN v0.21.0 using Code Push v1.10.0-beta, and as soon as I add the line
import codePush from 'react-native-code-push';
into my project, I receive the errorbabelHelpers.asyncToGenerator is not a function
. I found this issue which makes me think @brentvatne might know the solution per facebook/react-native#4844. The contents of my.babelrc
are as follows:The text was updated successfully, but these errors were encountered: