question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error: Error: Unable to resolve module `react-navigation-stack`

See original GitHub issue

Error: Unable to resolve module react-navigation-stack from `node_modules/react-native-screens/src/createNativeStackNavigator.js

With react-navigation@5.x they use @react-navigation/stack instead of react-navigation-stack

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
luatndcommented, Sep 4, 2020

That’s a clear answer, thanks. I haven’t notice that it was mentioned here: https://github.com/software-mansion/react-native-screens#using-createnativestacknavigator-with-react-navigation

0reactions
WoLewickicommented, Sep 3, 2020

Because it uses the previous version of react-navigation. There are 2 version that can be used. One you mentioned in react-native-screens/src/createNativeStackNavigator.js (for older version) and one in react-native-screens/src/native-stack/navigators/createNativeStackNavigator.tsx

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to resolve module 'react-navigation' - Stack Overflow
This error means that either you haven't installed the react-navigation module or that you have installed the module but didn't re-built ...
Read more >
Unable to resolve module @react-navigation/stack · Issue #9976
Current behavior Unable to resolve module @react-navigation/stack from E:\expoapps\is-hr\App.tsx: @react-navigation/stack could not be found within the project.
Read more >
Troubleshooting | React Navigation
I'm getting an error "Unable to resolve module" after updating to the latest version​. This might happen for 3 reasons: Stale cache of...
Read more >
@react-navigation/core - npm
Start using @react-navigation/core in your project by running `npm i @react-navigation/core`. There are 45 other projects in the npm ...
Read more >
Unable to resolve "@react-navigation/stack" from "App.js"
I'm trying react-native for the first time and trying to create a stack navigation, I'm getting the following error: Unable to resolve…
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found