react-native run-androidfail after upgrading to react-native 0.46.0
See original GitHub issueAfter I upgrade to react-native 0.46.0, I can’t run react-native run-android. Digging a bit, Looks like the react-native start is failing because it cannot create the index.android.bundle. So I try to create the bundle manually but it got fail saying error below:
react-native bundle --platform android --dev false --entry-file i
ndex.android.js --bundle-output android/app/src/main/assets/index.android.bundle
--assets-dest android/app/src/main/res
Scanning 575 folders for symlinks in C:\Git\cancure\node_modules (16ms)
Scanning 575 folders for symlinks in C:\Git\cancure\node_modules (16ms)
Loading dependency graph, done.
Unable to resolve module `react-native/Libraries/Renderer/src/renderers/native/R
eactNativePropRegistry` from `C:\Git\cancure\node_modules\native-base\dist\src\U
tils\computeProps.js`: Module does not exist in the module map
This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:
1. Clear watchman watches: `watchman watch-del-all`.
2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.
3. Reset packager cache: `rm -fr $TMPDIR/react-*` or `npm start -- --reset-cac
he`.
Downgrading back to react-native 0.45.1, my project run smoothly again
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:13 (1 by maintainers)
Top Results From Across the Web
React-Native Run-Android Not Working After Upgrading
1 Answer 1 · upgrade NODE and NPM if necessary (this solved my issue) · gradle clean on android · delete node modules...
Read more >unable to resolve module react-native-elements - You.com
1. I had the same problem, I fixed that by below steps: 1-> delete node_modules by: rm -rf node_modules. 2-> delte Pods folder...
Read more >Upgrading to new versions - React Native
Some upgrades won't be done automatically with the React Native CLI and require manual work, e.g. 0.28 to 0.29 , or 0.56 to...
Read more >Installation | React Native Navigation - Open Source
npm install --save react-native-navigation · yarn add react-native-navigation · pod install --project-directory=ios · react-native run-ios · platform :ios, '9.0'.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@madbean React-native-easy-grid@0.1.13 is NOT a work around. This commit is part of 0.1.13 which came BEFORE 0.1.11 (0.1.14 is most recent and it fixes this mixup). This commit fixes the build errors as noted in this issue.
Current fix: use
react-native-easy-grid@0.1.14
(most recent)Verified using the following:
react-native@0.46.1
react@16.0.0-alpha.12
native-base@2.2.1
@ibrahimker can you confirm and close this issue.
npm install --save react-native-easy-grid@0.1.13 is a work arround https://github.com/GeekyAnts/react-native-easy-grid/issues/42