Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Error in React-Native #4

Open
ColinRTaylor opened this issue Jun 22, 2016 · 3 comments
Open

Error in React-Native #4

ColinRTaylor opened this issue Jun 22, 2016 · 3 comments

Comments

@ColinRTaylor
Copy link

Wasn't sure where to post this question, but I'm getting an error with React-Native:

`[node-haste] Encountered an error while persisting cache:

ReferenceError: [BABEL] /node_modules/react-autobind/index.js: Unknown option: /node_modules/react/react.js.Children`

Any idea about this?
Happy to contribute if I can figure out how what this means.

@eysi09
Copy link

eysi09 commented Jul 19, 2016

I'm seeing the same error.

@Venryx
Copy link

Venryx commented Dec 23, 2016

Just hit this myself, and fixed it by deleting the .babelrc file. (I guess because react-native doesn't import a full version of the react babel transpiling module--or maybe it just uses a different version of the module)

@cassiozen Any idea how to have this work by default for both react and react-native? If you don't know a way, the Readme should probably at least mention the above react-native fix. (after that fix it works fine)

@edmofro
Copy link

edmofro commented Jul 20, 2017

This error exists for any dependency in node_modules that includes a .babelrc

See vault-development/react-native-svg-uri#62 for another example of this behaviour and airbnb/react-with-styles#44 (comment) for a hacky fix (postinstall script that removes all .babelrc files)

Also see facebook/react-native#10966 for the issue that may track its eventual fix

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants