-
Notifications
You must be signed in to change notification settings - Fork 624
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 #110
Comments
Do you have any more information about the error? Any log shown on the terminal would help |
@rafeca There is only I'm not sure that this problem is caused by |
Ok so I was having the same issue but I just restarted my IDE, command line and ran the app again it worked fine. |
Decided to try Expo today for the first time since last summer. Was eager to see what's new. |
I'm having a similar problem. :( |
@vincekruger Thanks for mentioning that about Snack working. |
@rafeca The out of the box experience is broken for me and these other folks, and coming up on a week with no response. Would appreciate your opinion here :) |
Hey people! I'd need some more specific logs/repro steps in order to investigate this. I've tried to reproduce it in React Native v0.52 with my test app (https://github.com/rafeca/rn-test-app) and I cannot see such error, so this may be an issue with the expo CLI integration. |
Thanks for checking @rafeca! The problem is the Expo folks have disabled their issue tracker on GH. |
I suspect there is some bug with npm 5 causing problems for people here, but nobody here actually provides steps to reproduce the problem so it's hard to say (as it works as expected for me and many thousands of other people). Please use npm 4 |
Over on the Expo thread I opened, Brent helpfully recommended using yarn because npm5 apparently still has bugs. In my case, even though I don't recall using npm to install and I'm back in business. Hope it helps! |
I had the same issue, npm start -- -- reset-cache solved it, if it says cant run on port **** kill thoose process and reset again |
@marcinkosiba it doesn't work for me : ( |
@onpaws Thanks for investigating this problem. I have tried to |
React Native doesn't work with NodeJS 9 and new version of NPM Downgrade your node version to: 8.9 after that remove your node_modules directory and run npm install again |
It doesn't appear to work with ANY version of node & npm. |
Yeah same issue with me, i’ve tried using npm3.10.10 still the same, create new project, run on device (genymotion or even on iOS), get the metro bundler internal error |
Fam,
|
I just made a curious discovery. I moved my project to a new path: |
Anyone else have non-alphanumeric character(s) in the project absolute path? |
@onpaws I don't have any non-alphanumeric in my project path, and I got this error suddenly, without any specific change.. I removed the I'm using the snackbar dialog library and I have to run |
@onpaws I tried to create a new project in the path which doesn't has non-alphanumeric character, it finally worked! lol In my old project, there is non-alphanumeric characters in its absolute path. I ran |
@KnowMighT Glad it worked for you! |
On my side this error was caused by incompatible Expo <--> React-native versions (After upgrading expo) and it is solved now.
|
I suddenly started getting this error (Module bundler has encountered...) ever since I started using As per some of the comments above, I'll try playing around with different versions of |
I got the same error and when I checked my error log this is the error:
Its like its due to react-native-vector-icons package in my case. |
I found that this can be due to assets in some cases, in particular when attempting to do a minified dev=false build. I had to clear the cache for it to go away (using exp, |
easiest fix for me is |
Luckily, I fixed this by mistake. Posting here in case it'll help with the fix. Changing "import NavigationBar from "./../../../components/common/";" works. (so adding an extra / before "components") The first path is absolutely correct. |
in my case, i didn't had sdk location in local.properties |
npm installing modules without restarting expo XDE was the culprit for me, hope this helps also, if you're reading this; you are loved and don't let anybody tell you otherwise <3 |
Hey people, I'm going to close this issue, since it seems mostly related to expo (so the discussion is more relevant in expo/expo#1260) |
reinstall exp works for me |
I had huge refactoring today and got stuck for hours with dangling imports all over the place, but thanks to @GentryRiggen I managed to fix them all. |
Just in case anyone else finds themselves here, my solution (after several hours) to this exact error prompt was from VSCode sneakily importing: |
Remove Node module. install again then try with then you will see the comming screen with INFO : 12:37 INFO : 12:37 INFO : 12:37 then run with your device. |
I had the same issue.
for ios replace
with
|
you may need to run |
Thank you for the answer! It works for me. |
I have the same issue, been about two weeks now. And ive noticed it appeared when i updated my expo |
I have same problme with RN version "0.58.2" on ubuntu 18.04 LTS |
I have same problem with RN 0.59 on Mac RN default support 3 version
while u open project in Android Studio , its show dialog of Auto Update gradle, u need to skip this dialog. |
Thanks a lot...it works |
Make sure |
remove all files from C:\Users<your pc name>\AppData\Local\Temp |
this works for me!!thanks!save my day |
That error appeared to me because when importing I wrote on terminal "nom start react-native-animatable --save", just by removing the "save" part, I was able to get it all working nicely |
Thank you for this, it really fixed the issue. But in my own case I had to use the command below: |
When I run
yarn start
in the terminal and use Expo App to open my RN Project in iPhone, an error appears as follows:The text was updated successfully, but these errors were encountered: