-
Notifications
You must be signed in to change notification settings - Fork 907
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
Autolinking fails on Windows #470
Comments
Hey! Thanks for filing this issue. Unfortunately we don't have Windows machines to test on. We used to do |
I confirm that |
It's already resolved and fixed in @react-native-community/cli@2.0.2, make sure you have it installed (check the lock file) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Okay so doing
And doing
In the second case, the Adding a delay of, let's say 5 seconds, with |
@thymikee I upgraded to 2.0.2 but the error still persists. I have this command |
@thymikee after deleting |
Sure. But you'll need to help us make it work with your environment. We got signals that it works on some Windows, but looks like not all of them. Help appreciated :) |
Also check if running this command alone, run from terminal, produces a json output. Maybe it takes too long |
This comment has been minimized.
This comment has been minimized.
there is still an error |
same here |
Windows 10, same error even after And the I am sure the cli version is 2.0.2. Error:The system cannot find the file specified, ... Automatic import of native modules failed
|
@thymikee Running I have currently changed my
|
How are we supposed to create new RN project? When instructions on main RN site are followed, 2.0.1 of global CLI is installed and this error happens. I also cant run mu RN app because of this (windows). It was running yesterday and just stopped. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
If it worked for you yesterday, then likely your environment is ok with running:
(inside It baffles me how hard it is to get regular node scripts running in Windows. Since you guys are experienced in working with this environment, we expect some help and your expertise. We could technically run this cross-platform using |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@thymikee all right, then the new cli can pass the compile steps. but some error messages shown as previous commends said. like
|
Seeing |
@zenz do what @thymikee said and if it still doesn't work, try adding these in your
Afterwards, do |
@theweavrs So instructions on official site are basically wrong? I managed to make it work by:
And it worked! 🎉 |
This comment has been minimized.
This comment has been minimized.
@theweavrs If you follow what is written on official site you get the solution that doesn't run, just saying... 😃 |
This comment has been minimized.
This comment has been minimized.
@mi5ha I don't think they updated it correctly/fully after 0.60 release and after |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Let's get some facts straight:
Now that we know the facts: Solution is to update your CLI version:
After performing these steps you should be on the latest CLI version. Feel free to do it once in a while, because we release often. |
@theweavrs , Oh yes, I missed that comment! Thanks |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Thanks a lot. It worked |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
anyone have experience getting this error on Azure DevOps? This is where we are continuing to get this error. |
Environment
Output of
react-native --version
:Description
This is the error I am getting while running
react-native run-android
or.\gradlew app:installDebug
:I tried running the
gradlew app:installDebug
command on Git Bash but still got the same error.Reproducible Demo
react-native init
yarn add react-native-track-player@latest
yarn react-native run-android
The text was updated successfully, but these errors were encountered: