-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metro Bundler has encountered an internal error, app fails to load #17685
Comments
Do you have any require image like this:
I'm facing the same issue, if I remove all 'requires' to images the error go away. |
I'm seeing this with the default app which doesn't |
React-Native doesn't work with Node v9.4. When I went through the quickstart guide I just saw that it needed to be greater than Node 4, but missed the message when doing the install that there was a more constrained set of versions that work. After downgrading to Node v8 everything seems to be working again. |
I have this same issue and I'm on node 8.9.4 |
Me too, I was updating an app to RN 0.52 and this issue keeps popping up. I did notice that the only way the app seems to start is when commenting my import of the Navigation stack (provided by react-navigation). Wonder if it's any issue with the images as well. What way should we import them if removing the requires? Didn't read anything about it in the changelogs. Update: I actually think my issue is related to this one |
Actually it's a RN problem. See #17672 |
I've got the same issue with you. |
I'm having the same problem with Android SDK using latests React Native and Node.js 9.5.0. |
I'm having this error too. If i remove the |
…expo`, and Metro Bundler issue (facebook/react-native#17685)
I simply closed the iOS simulator and executed |
I had the same issue and after trying everything here, lead me to the right one. update to be |
FWIW Same error on virtual android device (see screenshot). In my case this error was thrown because I had node.js app and node inspector running on my machine:
I killed all node processes and the error was not thrown again. |
In my case, the problem was solved by restarting the node server, hosting the react app. Hope it helps somebody. |
Need to restart packager. npm start from root folder. |
delete node_modules then npm install worked for me |
reset npm cache work for me.
|
If it insists that
and you are not: try just |
same here. In my case I solved with this:
and build again on device |
@marlosirapuan It works for me, thanks |
thanks @marlosirapuan |
i had the same issue. Then I restart my system after that create a new project it works. but the old one doesn't . |
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Environment:
OS: macOS Sierra 10.12.6
Node: 9.4.0
Yarn: 1.3.2
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 2.3 AI-162.3871768
Packages: (wanted => installed)
react: 16.2.0 => 16.2.0
react-native: 0.52.0 => 0.52.0
Steps to Reproduce
Expected Behavior
App should open without errors in the simulator.
Actual Behavior
Reproducible Demo
Default app created using
react-native init
exhibits the issue. I also tried to downgrade to 0.51 but I'm seeing the same issue.The text was updated successfully, but these errors were encountered: