-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Ambiguous resolution of react-native #15789
Comments
I have recreated the emulator after deleting it. I tried a new app and existing apps, they all are working fine. |
What's the point of having two |
Obviously nothing. See I renamed it to Moreover, we can't have two folders with the same name on Windows. |
Have you tried cleaning cache? Still, I can't see any point in doing this. |
I'm having the same problem. |
Yes, I had tried deleting I know no point in doing this, but all I wanted to reinstall Now could you please help? |
Maybe clean watchman cache then? If not, unfortunately, I have no clue about this. |
Ohk, I'll try cleaning watchman cache. How to do it? Command? Directory? I'll keep you posted here. Thanks. |
@ManvendraSK try |
@jonathanoron I'll try when back at home, right now in office ;-). Let's see what is next, I'll keep you posted here. May be somebody would help like Batman! :-P |
@ManvendraSK |
Thanks @jonathanoron. I'll try it when at home. 👍 |
Hey @jonathanoron and @radko93, it's working fine!
Thanks, guys. You both are Batman for me! |
@facebook-github-bot answered |
Closing this issue as @radko93 says the question asked has been answered. |
In my case, It seems that I had conflicts between Deleting |
i tried to install, fixed thanks folks |
Reboot mac works |
Also, delete |
For those of you trying to create a library/bridge: I just got this error, and it was because I had put an
Which means that when I ran The fix was to add a I then did:
Edit: Finally noticed that my issue is related to a yarn issue. They don't seem to have a fix besides downgrading to 0.26.1 (which introduced another bug for me), so will have to do with the above for now. |
For me the error appeared in calling my Project ReactNative! |
Any idea when this will be solved? For now I cannot install any pods that install React as well. |
If nothing helps remove duplicate dependencies from Pods & react native links. Then clear Pods cache & reinstall them using this : gist |
Generally this issue arises when there are two folders of react-native. More often, if you use Pods, you have dependency that relies on the 'React' pod and thus you should reference the pod in your node_modules/ not install anothe react-native from cocopods. To do so, you can add the following to your Podfile
|
Full reset that worked for me: #!/bin/bash
echo "Completely resetting life"
echo "STARTING: Deleting Node modules"
rm -rf ./node_modules
echo "FINISHED: Deleting Node modules"
echo "STARTING: Removing yarn.lock file"
rm yarn.lock
echo "FINISHED: Removing yarn.lock file"
echo "STARTING: Deleting Watchman and yarn cache"
watchman watch-del-all
yarn cache clean
echo "STARTING: Re-installing node modules"
yarn install
echo "FINISHED: Re-installing node modules"
echo "STARTING: restarting app"
yarn start --reset-cache |
npm start -- --reset-cache solved the problem for me. thx!!! |
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
react-native -v
: 2.0.1node -v
: v8.4.0npm -v
: 5.3.0yarn --version
:Then, specify:
Steps to Reproduce
(Write your steps here:)
node_modules
directory tonode_modules_
.android
directory.npm i
react-native upgrade
react-native run-android
After not working I even deleted the
node_modules_
directory. But the problem still persists.Expected Behavior
It should just work as expected, run the app in the Android emulator.
Actual Behavior
It's not working. React packager is complaining.
Reproducible Demo
https://github.com/ManvendraSK/ChatNowReactNativeSampleApp
The text was updated successfully, but these errors were encountered: