Build worked fine today, reinstalled node_modules => 'React/RCTBridgeModule.h' file not found
See original GitHub issueEnvironment
Environment: OS: macOS High Sierra 10.13.6 Node: 11.0.0 Yarn: Not Found npm: 6.4.1 Watchman: 4.9.0 Xcode: Xcode 9.4.1 Build version 9F2000 Android Studio: 3.2 AI-181.5540.7.32.5056338
Packages: (wanted => installed) react: 16.3.1 => 16.3.1 react-native: 0.55.4 => 0.55.4
Description
I can no longer run my project on iOS because of build errors that appeared out of nowhere. I was doing some cleanup and removed node_modules, then reinstalled all the packages with npm install
. But now the project can’t be built, I’m getting the same error every time for various native modules:
fatal error: 'React/RCTBridgeModule.h' file not found
Both react-native run-ios
and Xcode give the same result. I literally changed nothing in my project except reinstalling node packages (I’m using Git so I can see that nothing changed).
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
`React/RCTBridgeModule.h` file not found - Stack Overflow
In my case this particular problem happened when I was trying to archive a 0.40+ react-native app for iOS (solution was found here:...
Read more >[Solved]-React Native ios build failed on react-native run-ios
There are different problems that cause this issue. I'll post here what I did to resolve in my case. 1 - Delete the...
Read more >Active questions tagged react-native+ios - Stack Overflow
Next React Native ios build error 'React/RCTBridgeModule.h' file not found with ... It works fine on Android, but doesn't play anything on iPhone....
Read more >Upgrade your React Native App - Pattem Digital
Here, we are going to create class Bulb in Swift for Java and iOS for Android, and hence this React Native 0.59 app...
Read more >fs not found react - You.com | The AI Search Engine You Control
Module not found: Error: Can't resolve 'fs' react js ... `React/RCTBridgeModule.h` file not found ... Everything works just fine. Webpack config:.
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
@lightninglu10 In Xcode go to upper left corner -> click on your app name -> Edit Scheme -> Build -> make sure in Targets you have React as your first target, and then your app’s target. This tells Xcode to build React Native and all the modules before your project.
doesn’t work