throws TransformError in ReactNative 0.16 #65

Closed
opened 2015-12-20 09:08:51 +00:00 by iZaL · 12 comments
iZaL commented 2015-12-20 09:08:51 +00:00 (Migrated from github.com)

package throws TransformError in ReactNative 0.16

package throws TransformError in ReactNative 0.16
sslash commented 2015-12-23 23:29:07 +00:00 (Migrated from github.com)

+1
believe this is because it uses .babelrc. Similar issue here: https://github.com/goatslacker/alt/issues/558

+1 believe this is because it uses .babelrc. Similar issue here: https://github.com/goatslacker/alt/issues/558
kdoh commented 2015-12-24 21:12:41 +00:00 (Migrated from github.com)

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.

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 commented 2016-01-04 10:01:02 +00:00 (Migrated from github.com)

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

`.babelrc` has already been excluded from the archive uploaded to npm. But with a52524fb59089ae5df674f354fb38cafac099823 I've removed the file at all. Does this solve this issue?
iZaL commented 2016-01-05 12:09:04 +00:00 (Migrated from github.com)

yes, tnx

yes, tnx
sslash commented 2016-01-07 15:17:22 +00:00 (Migrated from github.com)

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

I am now getting an error saying cannot find preset "michaelcontento" relative to directory ....
john916zhang commented 2016-01-19 09:45:55 +00:00 (Migrated from github.com)

@sslash I have the same issue.

@sslash I have the same issue.
john916zhang commented 2016-01-19 10:06:42 +00:00 (Migrated from github.com)
2016-01-19 6 04 55
<img width="377" alt="2016-01-19 6 04 55" src="https://cloud.githubusercontent.com/assets/195719/12415549/3b33f870-bed7-11e5-8263-8abbc858fef2.png">
john916zhang commented 2016-01-19 11:00:47 +00:00 (Migrated from github.com)

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

Very strange. I got the same error even after I installed **babel-preset-michaelcontento**
michaelcontento commented 2016-01-19 11:04:38 +00:00 (Migrated from github.com)

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 .... 😂

~~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 :disappointed:~~ ~~@anderson916 or @sslash: Would it be possible for you to create and publish a sample repository where I can see this error myself?~~ Nevermind .... :joy:
michaelcontento commented 2016-01-19 11:16:29 +00:00 (Migrated from github.com)

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 install redux-storage via npm there is no more babel config that could fail 😄

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 install `redux-storage` via npm there is no more babel config that could fail :smile:
john916zhang commented 2016-01-19 11:41:07 +00:00 (Migrated from github.com)

It works now. @michaelcontento Thank you very much.

It works now. @michaelcontento Thank you very much.
michaelcontento commented 2016-01-19 11:41:48 +00:00 (Migrated from github.com)

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

No problem - a new version will be published to npm in a few minutes
This discussion has been locked. Commenting is limited to contributors.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MichaelContento/redux-storage#65
No description provided.