throws TransformError in ReactNative 0.16 #65
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MichaelContento/redux-storage#65
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
package throws TransformError in ReactNative 0.16
+1
believe this is because it uses .babelrc. Similar issue here: https://github.com/goatslacker/alt/issues/558
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.
.babelrchas already been excluded from the archive uploaded to npm. But witha52524fb59I've removed the file at all. Does this solve this issue?yes, tnx
I am now getting an error saying cannot find preset "michaelcontento" relative to directory ....
@sslash I have the same issue.
Very strange. I got the same error even after I installed babel-preset-michaelcontento
I've now created new projects for various versions of react-native (0.16.0,0.17.0and0.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 .... 😂
This bug exists because of https://github.com/facebook/react-native/issues/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 installredux-storagevia npm there is no more babel config that could fail 😄It works now. @michaelcontento Thank you very much.
No problem - a new version will be published to npm in a few minutes