error: Error: Unable to resolve module `react-navigation-stack`
See original GitHub issueError: 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:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
Because it uses the previous version of
react-navigation
. There are 2 version that can be used. One you mentioned inreact-native-screens/src/createNativeStackNavigator.js
(for older version) and one inreact-native-screens/src/native-stack/navigators/createNativeStackNavigator.tsx