@react-navigation/native could not be found within the project or in these directories: node_modules/@react-navigation/native-stack/node_modules

If you are sure the module exists, try these steps: 1. Clear watchman watches: watchman watch-del-all
2. Delete node_modules and run yarn install
3. Reset Metro’s cache: yarn start — reset-cache
4. Remove the cache: rm -rf /tmp/metro-*

Aurora
ILLUMINATION

--

Photo by Vitalis Hirschmann on Unsplash

Have you ever encountered this error while building your project? Fear not. It is a small overlook of something which you might have forgot to install. If you have seen this error, all you have to do is run this command in VSCode Terminal while inside your project folder —

yarn add @react-navigation/native

Then, press —

control c

(To stop metro)

Run these commands again in a split separated VSCode Terminal —

npx react-native start 

And,

npx react-native run-ios

You would have see that the error has been resolved!

Photo by Mikaël Birraux on Unsplash

--

--

Aurora
ILLUMINATION

⋆꙳•̩̩͙❅*̩̩͙‧͙ ‧͙*̩̩͙❆ ͙͛ ˚₊⋆