after checkout when i say react-native run-android im getting below error.
Metro Bundler has encountered an internal error, please check your terminal error output for more details
below is package.json in my project.
{
"name": "NCAPRNRedux",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "16.2.0",
"react-native": "0.52.2",
"react-native-vector-icons": "^4.0.0",
"react-navigation": "^1.0.0-beta.29",
"react-redux": "^5.0.6",
"redux": "^3.7.2",
"redux-thunk": "^2.2.0"
},
"devDependencies": {
"babel-jest": "22.1.0",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-preset-react-native": "^4.0.0",
"jest": "22.1.4",
"react-test-renderer": "16.2.0"
},
"jest": {
"preset": "react-native"
}
}
anyone had this issue and solved it?
Do you have any require image like this:
require("../assets/user.png")
If yes then please check the image path. I’m facing the same issue, so I just corrected the path and the error is gone.
1.I suggest restarting React. Just run the following commands:
# Kill current processes
killall node -9
# Start React - Native
react-native start
# Run android
react-native run-android or react-native run-ios
That should do the trick.
2.If it is not working then check your image path you have used. For example
<Image
source={require("./images/logo.png")} // check your image path you have used
>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With