-
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
Stuck in "Scanning folders for symlinks in..." #18290
Comments
Thanks for posting this! It looks like your issue may refer to an older version of React Native. Can you reproduce the issue on the latest stable release? Thank you for your contributions. |
When I ran
Edit: Same with |
Upgraded to 0.55 and still same. |
Update: It's works well with ; But |
I have the same issue on Ubuntu |
Same bug here on Mac. I am glad I found this ticket. I try to debug now why this happens. |
I had a similar problem when using Create React Native App. It turned out I simply had to eject before being able to run an Android build. |
For me, the root of the issue was in watchman. I solved it by |
me too stuck here |
problem seems solved after closing and opening the terminal and running the command |
Restarting the terminal worked for me as well. Huh. |
for me this worked |
I was kind of silly, but maybe it will be useful to someone else.. I created two projects as the tutorial suggests: I tried to run the command However it is only available if you use the default project created with this command |
Check the SDK and and also in environment settings add "C:\Users<user>\AppData\Local\Android\Sdk\platform-tools" and "C:\Users<user>\AppData\Local\Android\Sdk\tools" to User Variable. As well add JAVA_HOME and ANDROID_HOME (path) to your system variable |
i solve the problem like this
|
I don't think that's a solution. :) We may need a reasonable explanation of the cause of this bug. |
I created my React-Native application with expo and getting this same error. How about anybody else on expo? |
The problem for me was that the Metro Bundler (The window with title 'node "....\local-cli\cli.js" start') was open in the background from a previously terminated build. After I closed that window, the new build process was able to spawn a new Metro Bundler and all proceeded fine from there. |
restart vs code and terminal worked. :) |
"Restarting" is not a solution. Must have a rational explanation. |
Did you install using |
@Dentrax |
Uhm so it's a process that hangs, basically, right? OP used |
I do not know why, but there is no explanation in this bug. I think that explanations and details need to be improved. Isn't it? @kelset |
i have same issue |
What's happening? I got this issue like out of nowhere!? |
Has this issue been addressed by any of the developers? It seems to be active and its something that is bothering a lot of users. Can we please get an update / some assistance? Thanks |
I restart my laptop then it works. Still don't know why. |
Upgrade the react-native package
This method 100% works |
The issue is simply because of some previous process which wouldn't have been properly terminated before. windows users can try by running cmd as admin then hope this works cheers :) |
I have the same problem on Windows 10 and React Native version 0.55.4 |
+1 this just happened to me on Windows 10.
I have good insight into the error after loading a pre-existing project made in iOS onto my Windows PC. I was using React Native on a different PC before, so this Windows 10 machine is kind of semi-baked in terms of it's preparedness for React Native. I did: $ yarn install
$ yarn android and it threw an error about SDK location, which I fixed by defining the path in Then, I ran The next time I ran This fixed it for me (remember, Windows only): $ netstat -ano | findstr :8081
$ taskkill /PID <your-process-id> /F The question is why did Metro Bundler hang or get stuck? and why can't it unstuck itself when you run I tied closing VS Code and reopening it, but that didn't work. I had to run |
👋 @agm1984 thanks for the detailed explanation! Have you perhaps tried with any other bundlers (ex. Haul?)? |
Follow these steps :
and then |
I had the same issue , And my problem was that the packager was already running (cli.js) |
@chrisgrg you are right the same happens on windows :D, maybe you forgot to close another instance of the cli bundler :D |
I just reproduced this error again, but this time in Ubuntu. I usually trigger refreshes in the app by pressing CTRL+S even if I don't change any code. Sometimes I have to press it 2-3 times which brings a risk of red screen of death. But thats ok because you can just press CTRL+S again and it reloads properly. Long story short, I just did that and it didn't work, so I ran That force reload lead to hanging on the symlink scan: Scanning folders for symlinks in /home/adam/dev/some-app/node_modules (16ms) I fixed it with npm start, CTRL+C'd out of that and ran npm start did. It absolutely fixed it. After that, I see the commend in here about killing the process on port 8081. I'm sure that would fix it also. The bundler gets stuck sometimes. If a person wants to reproduce it, just hammer on CTRL+S while hot reload is enabled :) You will surely see some opportunities to fix a stuck bundler. I would venture a guess that if the bundler is in progress refreshing and you trigger another refresh, you can cause it to implode. It can occur about 50% of the time. The faster you trigger reloads, the higher the chance you will reproduce this or a similar issue. |
Microsoft Windows [Version 6.3.9600] C:\native\AwesomeProject>react-native run-android FAILURE: Build failed with an exception.
BUILD FAILED in 5s |
It looks like it's packager running in the background is what causes this, closing the packager terminal will then correct the problem and restart packager. |
This issue has been moved to facebook/metro#377. |
Environment
Expected Behavior
When I'm trying to install app to Android Emulator, this problem occurs;
Scanning folders for symlinks in C:\Users\Furkan\AwesomeProject\node_modules (30ms)
Actual Behavior
-npm already running
-System Variables are OK
-CMD (via Administrator)
-Android 5.0.1 (API 21, All SDK components/Extras/Build Tools was installed)
-adb devices;
Steps to Reproduce
-run "npm start"
-run ".androidSDK/tools/emulator -avd Nexus6"
-run "react-native run-android" (when Android booted)
The text was updated successfully, but these errors were encountered: