-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
"run-android" stuck on JS Metro Bundler ("warn") #25904
"run-android" stuck on JS Metro Bundler ("warn") #25904
Comments
Can you run If you believe this information is irrelevant to the reported issue, you may write `[skip envinfo]` alongside an explanation in your Environment: section.
|
I updated |
Same problem, I tried to reinstall node, clear npm cache, etc ... |
Same problem, how to solve the issue? |
Same problem too ! (tried to reinstall node, used yarn or npm, cleared cache and so on) |
Same problem too, please help |
I am also having this issue too!
System: OS: Windows 10 and i have made the refactor to AndroidX and use JETIFIER and it does not even compile my app on an Android Emulator, it just get stuck in the metro bundler, like the image for example. I recently upgraded to react native 0.60.4 using this tool https://react-native-community.github.io/upgrade-helper/?from=0.59.8&to=0.60.4 |
Same problem |
similar issue here as well |
@ezranbayantemur This seems to be an issue with the CLI. I suggest you open an issue there. |
But same (version) CLI runs older projects (just created a week ago, not different) perfectly. I don’t think problem about CLI. |
@ezranbayantemur what's your CLI version? Check using |
same problem,Please help me |
Same here |
When I init my project at react-native version 0.59.3 again. The problem is gone. |
i have got the solution of the problem
|
@san003 RN versions less than 0.60 use 1.0+ versions of CLI which don't have the bug. RN Version 0.60+ uses 2.0+ version of CLI. |
When I was command "react native -v"
If CLI is the problem how can work on older project? I mean it can be, maybe I was wrong, CLI has problem, but I don't get it. I have two project which one of them created one week ago (0.60.4), one of them yesterday (0.60.4), older one works fine but the other has a problem. |
@ezranbayantemur that's the global-cli version. Run the command i gave you. |
Compare the CLI versions of both the projects using the command I gave you and you will see the difference. Each time you run Edit: And I fixed it in the CLI so it is of course a problem with the CLI. Try the workaround I gave above until a new CLI release is published. |
Yeah you were right, older project has "@react-native-community/cli@2.8.0", newer one " @react-native-community/cli@2.8.1". Sorry for not thinking problem on CLI, my bad. I don't know very well CLI |
Mine is started working, just I had to do one more step.
|
I downgrade it but still has same error. I remove Also I checked with list command and :
|
@ezranbayantemur run |
The issue is being worked on here: react-native-community/cli#604. Should be fixed soon. Closing this one. |
Published fix in v2.8.3 of the CLI. Please update the |
Still happening here with 2.8.3. Tried to reinstall it, tried through npx, tried many times to create a project from scratch. No success. Node version: 8.13.0. |
having the same issue with 2.9.0. Someone running 2.0.1 doesn't have that problem. Any advice on how to debug this?
EDIT: @rabingithb's answer worked though... |
Well for my solution
|
i was facing the issue , my server used to stop, every time , but then i have changed the port and the issue has resolved now , |
Today I created a new project with "react-native init projectName" and when I tried to "run-android" it runs Node JS server and stucks like first screenshot.
If I kill the JS server it gives the warn about packager server and contiunes to install app and gives Unable to load script error (for sure because JS server not running)
When I first type "react-native start" and "run-android" it works fine, but I want to know why it happens like that? I search that warn error and can't find anything.
It's start happening suddenly. I didn't recieve that error on my old projects (same react and react native versions) and don't know why it happens.
Any help?
Error:
package.json
"react": "16.8.6", "react-native": "0.60.4"
The text was updated successfully, but these errors were encountered: