Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Issue with babel-preset-react-native plugin on v0.56 #20186

Closed
salujaharkirat opened this issue Jul 13, 2018 · 2 comments
Closed

Issue with babel-preset-react-native plugin on v0.56 #20186

salujaharkirat opened this issue Jul 13, 2018 · 2 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@salujaharkirat
Copy link

Environment

React Native Environment Info:
System:
OS: macOS Sierra 10.12.6
CPU: x64 Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz
Memory: 302.29 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 9.9.0 - /usr/local/bin/node
Yarn: 1.3.2 - /usr/local/bin/yarn
npm: 5.6.0 - /usr/local/bin/npm
Watchman: 4.7.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 11.2, macOS 10.13, tvOS 11.2, watchOS 4.2
Android SDK:
Build Tools: 23.0.1, 23.0.2, 23.0.3, 24.0.0, 25.0.0, 25.0.2, 25.0.3,26.0.0, 26.0.1, 26.0.2, 27.0.0, 27.0.1, 27.0.2, 27.0.3
API Levels: 23, 24, 25, 26, 27
IDEs:
Xcode: 9.2/9C40b - /usr/bin/xcodebuild
npmPackages:
react: 16.4.1 => 16.4.1
react-native: 0.56.0 => 0.56.0
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7
react-native-rename: 2.2.2

Description

I have a babel-preset-react-native depedency in my package.json. I am using v0.56 of react native.

Issue

If I use v5.0.0 of babel-preset-react-native the jest cases do not run and throw an error as follows :-

Cannot read property 'throwIfClosureRequired' of undefined (Wh
ile processing preset: "/Users/harkirat/wealthy/thrift/node_modules/babel-pre
set-react-native/index.js")

If I use v4.0.0 of babel-preset-react-native the react native application does not start as seen in #20042

Can someone please help me resolving this?

@kelset
Copy link
Contributor

kelset commented Jul 13, 2018

For issues related to jest/testing refer to #19859

@kelset kelset closed this as completed Jul 13, 2018
@salujaharkirat
Copy link
Author

thanks a lot @kelset

@facebook facebook locked as resolved and limited conversation to collaborators Jul 18, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 2018
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants