I have a RN developing environment on Windows 7. It works fine until yesterday it suddenly reports error after I run \"react-native\" start. The error Message:
Try deleting .babel.json, generate a new one and grant read permission to that file.
You have a babel.json file at C:\Users\Me that is invalid. Fix that or remove that. This was not created by React Native and is not needed unless you want to set some global babel settings for every project on your machine.
https://github.com/facebook/react-native/issues/11803
this worked for me:
react-native start --reset-cache
My node.js's version was 7.5.0.
I updated it to 7.10.0 yesterday and the problem solved.
I have run into this as well and debugged it as far as I could right now. The error arises from some race condition:
babel-register
writes a cache to ~/.babel.json
, on every tickI have no idea why this doesn't happen to everybody or why this only happens after having used react native for some time...
This will need to be fixed in React Native, probably in coordination with babel-register
... I will post this into the related GitHub issue as well.
Try this line in git bush
chmod 777 .babel.json
The problem maybe that this file is read-only.