Skip to content
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 Native build faild #32

Closed
vomchik opened this issue Mar 7, 2017 · 6 comments
Closed

React Native build faild #32

vomchik opened this issue Mar 7, 2017 · 6 comments

Comments

@vomchik
Copy link

vomchik commented Mar 7, 2017

After installing and configuration I got error

Bundling index.android.js
Transforming modules ▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░ 47.8% (264/382)...(node:33907) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3676): SyntaxError: TransformError: /Users/vomchik/Projects/node_modules/redux-query/src/index.js: [BABEL] /Users/vomchik/Projects/node_modules/redux-query/src/index.js: Unknown option: /Users/vomchik/Projects/node_modules/react/react.js.Children. Check out http://babeljs.io/docs/usage/options/ for more information about options.
A common cause of this error is the presence of a configuration options object without the corresponding preset name. Example:
Invalid:
{ presets: [{option: value}] }
Valid:
{ presets: [['presetName', {option: value}]] }
For more detailed information on preset configuration, please see http://babeljs.io/docs/plugins/#pluginpresets-options.Bundling index.android.js

Any ideas?

@vomchik
Copy link
Author

vomchik commented Mar 8, 2017

Probably it's problem this old babel version.
Locally i updated the babel to the last version and it's work.

@ryanashcraft
Copy link
Contributor

@vomchik Was the fix to update babel in your project?

@vomchik
Copy link
Author

vomchik commented Mar 8, 2017

I clone redux-query repo and update babel to newest version. And link with my project.

@vomchik
Copy link
Author

vomchik commented Mar 9, 2017

Can you update babel-cli ?

@vomchik
Copy link
Author

vomchik commented Mar 9, 2017

And also, why you using very old version of superagent ?

@vomchik
Copy link
Author

vomchik commented Mar 10, 2017

@ryanashcraft The issue can be closed. I installed all required babel-presets to my project and now all works fine.

@vomchik vomchik closed this as completed Mar 10, 2017
jeanregisser added a commit to crossfield/redux-query that referenced this issue Mar 30, 2017
This specifically fixes issues with React Native because of the presence
of a .babelrc in the npm package.

As seen in amplitude#32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants