Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

throws TransformError in ReactNative 0.16 #65

Closed
iZaL opened this issue Dec 20, 2015 · 12 comments
Closed

throws TransformError in ReactNative 0.16 #65

iZaL opened this issue Dec 20, 2015 · 12 comments
Assignees

Comments

@iZaL
Copy link

iZaL commented Dec 20, 2015

package throws TransformError in ReactNative 0.16

@sslash
Copy link

sslash commented Dec 23, 2015

+1
believe this is because it uses .babelrc. Similar issue here: goatslacker/alt#558

@kdoh
Copy link

kdoh commented Dec 24, 2015

From what I understand it seems to be that ReactNative 0.16's use of Babel 6 makes it angry at some .babelrc files.

Its not a particularly elegant solution, but using this script, which removes .babelrc files in the node_modules directory https://github.com/alinz/example-react-native-redux/blob/master/Counter/package.json#L7 seems to work.

@michaelcontento
Copy link
Owner

.babelrc has already been excluded from the archive uploaded to npm. But with a52524f I've removed the file at all. Does this solve this issue?

@iZaL
Copy link
Author

iZaL commented Jan 5, 2016

yes, tnx

@iZaL iZaL closed this as completed Jan 5, 2016
@sslash
Copy link

sslash commented Jan 7, 2016

I am now getting an error saying cannot find preset "michaelcontento" relative to directory ....

@john916zhang
Copy link

@sslash I have the same issue.

@john916zhang
Copy link

2016-01-19 6 04 55

@john916zhang
Copy link

Very strange. I got the same error even after I installed babel-preset-michaelcontento

@michaelcontento
Copy link
Owner

I've now created new projects for various versions of react-native (0.16.0, 0.17.0 and 0.18.0) without any success in reproducing this error 😞

@Anderson916 or @sslash: Would it be possible for you to create and publish a sample repository where I can see this error myself?

Nevermind .... 😂

@michaelcontento
Copy link
Owner

This bug exists because of facebook/react-native#4062. With PR #74 the babel config is back in its own file (.babelrc) which is ignored for the package published on npm. So if you install redux-storage via npm there is no more babel config that could fail 😄

@john916zhang
Copy link

It works now. @michaelcontento Thank you very much.

@michaelcontento
Copy link
Owner

No problem - a new version will be published to npm in a few minutes

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

No branches or pull requests

5 participants