-
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
[0.56.0-rc-2] Decorator support broken #19789
Comments
RN 0.56 uses babel 7, but babel-preset-react-native-stage-0 clearly depends on babel 6, see: https://github.com/skevy/babel-preset-react-native-stage-0/blob/master/package.json#L10-L18 It will not work ) |
I solved this by using
and
In my |
@alexwasner OK to close this issue? |
No, you should install And babel had change it's package prefix to @babel since babel-7-beta.4. You can see babel github here |
This is not a bug caused by the changes in the default config. It’ll be impossible to account for custom configs since it’s certain that some third party plugins will break in babel 7, and it’s up to the plugin authors to fix them/users to change their config. And thanks to suggestions from @jshearer and @fwh1990 I think we can close this but not lock for a bit, so that the conv about how to properly tackle can move forward. |
Environment
Run
react-native info
in your terminal and paste its contents here.Description
After upgrading to RN56, I am receiving a red screen for
error:(...node-modules/react-native-Libraries/react-native/react-native-implementation.js: Cannot find module 'react-native-stage-0/decorator-support'...
.My
.babelrc
file is as follows and worked on previous versions:Dev deps in
package.json
Reproducible Demo
Use provided
.babelrc
on a0.56.0-rc2
projectThe text was updated successfully, but these errors were encountered: