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.

Build worked fine today, reinstalled node_modules => 'React/RCTBridgeModule.h' file not found

See original GitHub issue

Environment

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:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
sryzecommented, Nov 13, 2018

@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.

screen shot 2018-11-13 at 15 40 50

0reactions
Kay0806commented, Aug 23, 2019

doesn’t work

Read more comments on GitHub >

github_iconTop 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 >

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