-
Notifications
You must be signed in to change notification settings - Fork 192
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
Make sure we work with Babel 7 #411
Comments
So that means |
Not sure exactly where I've ended up, but I tried to upgrade a project to babel 7 and ended up with this error:
|
Haul does not support Babel 7 yet. |
RN 0.56 RC is out. Does Haul support Babel 7 yet? |
@jshearer You know, bumping often won't make things magically happen ;) Also considering it's still just an RC version, you should be prepared that another tech hasn't really caught up to it yet. Bleeding edge is dangerous and you have to live with consequences of that choice ... or help out instead perhaps? Out of curiosity, you have switched back to metro? So why are you using Haul in a first place if you don't need any features of Webpack really? |
RN 0.56 release with Babel 7 has just landed. I've tried to fork Haul to use Babel 7, changed all the dependencies, tweaked everything in Dear collaborators, sorry for pinging again with this issue, but is there any estimations on integrating Babel 7 to Haul? I'd help. |
@deepsweet thanks for your help! Plugins used in Webpack config (especially |
@thymikee I have same issue and tried adding a peerDependency babel-core ^6.0.0 || 7.0.0-0
and may be related to bridge older version release note says. In addition, haul's stdout.log says:
this errors may be related to however modules are imported though I don't find conclusion.
especially, facebook/react-native@6de4ff3 and our error may happen by difference of exports.default and module.exports react-native-maps/react-native-maps#1970 We really want to fix this because we use typescript. |
Just
|
About https://github.com/facebook/react-native/releases/tag/v0.56.0,
Does “babel-preset-react-native”: “4.0.0" work with RN 0.56? I tried version 5.0.1 before but it didn't. I'll try again with 4.0.0. |
@tkow I created a new RN project using |
@ErrorPro We understood the point about capacity of the version compatibility of old babel preset |
I found that this problem derived from babel-preset-react-native version, now renamed metro-react-native-babel-preset. I rewrote babel-preset react-native to module:metro-react-native-babel-preset with installing the latest in my .babelrc and use babel-loader for babel 7, then it failed resolving NativeModules though any other modules looks no error. There may be problem of metro-react-native-babel-preset. |
We are about to update to that preset in default React Native app anyway as
of 0.57.0-rc.0. This is something to keep track of once it gets released.
…On Fri, 17 Aug 2018 at 07:27 tkow ***@***.***> wrote:
I found that this problem derived from babel-preset-react-native version,
now renamed metro-react-native-babel-preset. I rewrote babel-preset
react-native to ***@***.*** in my
.babelrc and use babel-loader for babel 7, then it failed resolving
NativeModules though any other modules looks no error. There may be problem
of metro-react-native-babel-preset.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#411 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACWcxoxnlS1IHsQ-faJbn8jW502w16Ioks5uRlRHgaJpZM4TfAPA>
.
|
I ran
In Addition: I have old babel cache so we cannot repro build success. |
I've managed to get a project working with Haul + React Native 0.57 + Babel 7 stable. Here's the current progress: #477 |
closed via #477 |
RN recently merged Babel 7 into master, which means v0.56 will probably get this – @grabbou correct me if I'm wrong.
Would be good to make sure we support that (probably some documentation changes and installing
[email protected]
will do).The text was updated successfully, but these errors were encountered: