Unable to resolve module react-native
See original GitHub issueWe use GitHub Issues for bugs.
Description
I recently created a new project using react-native init MyProject
. The app ran fine initially.
However now, when I run react-native run-ios
or try to use xcode to run the app. I get the following error screen.

I have followed the suggested instructions and have ran the following
rm -rf node_modules
rm -rf $TMPDIR/react-* --reset-cache
rm -rf node_modules/react-native/packager/packager.sh --reset-cache
npm cache clean
npm i
But I still experience the same problem
I have verified that react-native
is in fact installed at the correct location.
- React Native version: 0.38.0
- Platform: iOS
- Operating System: MacOS
Issue Analytics
- State:
- Created 7 years ago
- Reactions:10
- Comments:26 (1 by maintainers)
Top Results From Across the Web
Unable to Resolve Module in React Native App - Stack Overflow
Unable to solve module 'module-name' is realated to the node modules packages and sometime you would need to ...
Read more >0.62.1. error: Error: Unable to resolve module `react-native ...
Upgraded project to 0.62.1. Deleted node_modules, watchman, metro cache etc. Build completes but application fails to start with the error: error: Error: ...
Read more >React Native, Typescript and VS Code: Unable to resolve ...
React Native, Typescript and VS Code: Unable to resolve module · Reset the tool that watches files for changes on disk: · Rebuild...
Read more >Module not found | Can not resolve module in react - YouTube
Your browser can't play this video. ... Module not found | Can not resolve module in react ... 21K views 1 year ago...
Read more >undefined Unable to resolve module react-native-google-signin
ERROR [Error: undefined Unable to resolve module react-native -google-signinPlease do like share and comment if you like the video please do ...
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 Free
Top 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
+1 - i’ve gutted 2 projects now because of this, yikes
I resolved this using the
react-native-git-upgrade
package instead ofreact-native upgrade
to upgrade the project. And because of this I had to useyarn
instead ofnpm
.So, i did something like that: