-
-
Notifications
You must be signed in to change notification settings - Fork 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
Unable to resolve module @react-navigation/native
#5281
Comments
This is package-lock.json |
Sorry. This is react-navigation-tabs version problem. Not react-navigation problem. |
Since updating to 3.x I'm getting |
@gwalshington - you need to clear your react native packager cache |
Thanks for the quick response. I have tried clearing the cache and am still getting the same error. To confirm - I've attempted to clear by the following combination of commands: Am I missing something? Thanks! |
@gwalshington - that seems right. it's hard to say what might be going wrong, the react native packager (metro) can be tricky to work with. if you can share a project where I can reproduce this I can look into it |
Okay - I'll keep working on it and if I don't make progress will ping you. Thanks! |
@brentvatne i am getting the same issue , i cleared the cache also but getting the same problem |
sorry this is not a react-navigation issue, this is a metro bundler or watchman issue |
@SOftEngrAtta I'll call myself out and say the actual issue was I didn't read the new docs. The error was deceiving - it was actually due to the fact that I was using Check out these updates - the error doesn't insinuate this is the issue, but it was what was wrong for me. |
try drop grade to "react-navigation-tabs": "0.8.4" for "react-navigation": "^2.18.2" |
@adamnator92, @gwalshington, @DiepEsc, @brentvatne any help will be appreciated guys! |
This may help you #26 |
I had the same problem and tried everything that was suggested. I finally got it to work by running the second command in this step:
Running |
if your'e using expo, following worked for me : expo r -c |
you saved my live |
Hi, On my side, I just had to do Thanks @ravirdv ! 👌 |
|
I had the same problem. I tried 'watch man watch-del-all...' and '..reset cache' but no changed
saved my life ^^ |
@alexlevn thank you! This (installing the package again) solved my problem. I can't really understand why I had to do this because I was using @react-navigation/native before. |
|
Hey! This issue is closed and isn't watched by the core team. You are welcome to discuss the issue with others in this thread, but if you think this issue is still valid and needs to be tracked, please open a new issue with a repro. |
why these Js frameworks always sucks . |
The error.
Current Behavior
Error
Expected Behavior
Work
How to reproduce
npm install
again.. and the errorUnable to resolve module './createNavigationContainer'
was not fixed.npm install
again, it works, but React Native Tools not work. So I try delete folder .vscode/.react, reset cache. run-anroid again, the errorUnable to resolve module `@react-navigation/native
occurs.npm install
, re install react-native-cli .... but problem was not fixedEnvironment
The text was updated successfully, but these errors were encountered: