I cannot build the project for android
. When ever I run the gradlew assembleRelease
, I get the following error:
Failed to capture snapshot of input files for task ':app:bundleReleaseJsAndAsset s' property '$1' during up-to-date check.
Could not read path 'E:\React Native\IRStocks\node_modules\@babel\core\node_mo dules\json5.bin\json5'.
Here is my package.json
:
"dependencies": {
"@babel/core": "latest",
"babel-core": "latest",
"@babel/runtime": "^7.1.2",
"axios": "^0.18.0",
"babel-plugin-transform-decorators-legacy": "^1.3.5",
"metro-react-native-babel-preset": "^0.49.0",
"mobx": "4.3.1",
"mobx-react": "5.1.0",
"react": "16.3.1",
"react-native": "0.55.4",
"react-native-charts-wrapper": "^0.5.0",
"react-native-device-info": "0.18.0",
"react-native-draggable-flatlist": "^1.1.5",
"react-native-orientation-locker": "^1.0.18",
"react-navigation": "^2.17.0",
"searchable-flatlist": "0.0.4"
},
"devDependencies": {
"babel-jest": "23.6.0",
"babel-preset-react-native": "^5",
"jest": "23.6.0",
"react-test-renderer": "16.3.1"
},
"jest": {
"preset": "react-native"
},
BTW:
Environment:
OS: Windows 8.1
Node: 8.11.2
Yarn: 1.12.1
npm: 6.1.0
Watchman: Not Found
Xcode: N/A
Android Studio: Version 2.3.0.0 AI-162.3871768
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: 0.55.4 => 0.55.4
Any idea?
That was because of
Yarn: 1.12.1
and it's solved when I upgraded to1.12.3
.