You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.
If you don't know how to do something or something is not working as you expect but not sure it's a bug, please ask on StackOverflow with the tag react-native or for more real time interactions, ask on Discord in the #react-native channel.
If this is a feature request or a bug that you would like to be fixed, please report it on Product Pains. It has a ranking feature that lets us focus on the most important issues the community is experiencing.
We welcome clear issues and PRs that are ready for in-depth discussion. Please provide screenshots where appropriate and always mention the version of React Native you're using. Thank you for your contributions!
rm ./node_modules/react-native/node_modules/react-transform-hmr/node_modules/react-proxy/node_modules/react-deep-force-update/.babelrc I remove this file, then work
This root cause of the issue is that React Native uses Babel 6, which deprecated the use of the stage option on .babelrc files, and react-deep-force-update, a sub-dependency of React Native, still declares a .babelrc file with that option.
This is an issue with any third party modules that still use an older Babel in their own build process and do not clear the configuration files for the npm publish.
I have worked around the issue by adding the following npm run scripts to my package json:
The script nukes all .babelrc files under the node_modules directory after every npm install, except the one under the react-packager directory, which is React Native packager uses to configure its own babel rules.
Note that this issue has been raised on Stack Overflow by a couple of users, in addition to the reports here:
react-deep-force-update contains the offending .babelrc file
The downstream dependencies below react-transform-hmr have since been updated to use Babel 6, but the latest react-transform-hmr still depends on react-proxy@1.1.1. We would need to upgrade the html library to the latest react-proxy@1.1.2 to resolve this issue.
Activity
facebook-github-bot commentedon Jan 19, 2016
Hey py110, thanks for reporting this issue!
React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.
react-native
or for more real time interactions, ask on Discord in the #react-native channel.mylonelyplanet commentedon Jan 19, 2016
i have same issue too, even in a new project created by react-native init
carlos-wong commentedon Jan 19, 2016
+1
carlos-wong commentedon Jan 19, 2016
rm ./node_modules/react-native/node_modules/react-transform-hmr/node_modules/react-proxy/node_modules/react-deep-force-update/.babelrc I remove this file, then work
carlos-wong commentedon Jan 19, 2016
@py110 maybe you can have a try
py110 commentedon Jan 20, 2016
@carlos-wong +1
jiangqqlmj commentedon Jan 20, 2016
+1
sheldonhan commentedon Jan 20, 2016
+1
jevakallio commentedon Jan 24, 2016
This root cause of the issue is that React Native uses Babel 6, which deprecated the use of the
stage
option on.babelrc
files, andreact-deep-force-update
, a sub-dependency of React Native, still declares a.babelrc
file with that option.This is an issue with any third party modules that still use an older Babel in their own build process and do not clear the configuration files for the npm publish.
I have worked around the issue by adding the following npm run scripts to my
package
json:The script nukes all
.babelrc
files under thenode_modules
directory after everynpm install
, except the one under thereact-packager
directory, which is React Native packager uses to configure its own babel rules.Note that this issue has been raised on Stack Overflow by a couple of users, in addition to the reports here:
jevakallio commentedon Jan 24, 2016
I have not experienced this error myself (not on
0.18
in any of my apps yet), but it appears the depency tree that causes this error is the following:react-native
depends on react-transform-hmrreact-transform-hmr
depends on react-proxyreact-proxy
depends on react-deep-force-updatereact-deep-force-update
contains the offending.babelrc
fileThe downstream dependencies below
react-transform-hmr
have since been updated to use Babel 6, but the latestreact-transform-hmr
still depends onreact-proxy@1.1.1
. We would need to upgrade the html library to the latestreact-proxy@1.1.2
to resolve this issue.I have opened an issue gaearon/react-transform-hmr#55 at
react-transform-hmr
to see if we can get this upgraded.react-proxy
dependency breaks React Native build gaearon/react-transform-hmr#55hi54yt commentedon Jan 25, 2016
+1
imruiyeah commentedon Jan 28, 2016
+1
Sanster commentedon Jan 30, 2016
+1
16 remaining items