-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate interface definition for class 'RCTBridge' #11725
Comments
Same happens with new installation with all the RN packages imported with react-native link |
This was probably introduced by the breaking change on 0.40 that requires a "React/" namespace on header paths. Apparently all native modules will have to upgrade themselves to support RN >= 0.40, so... we better send them PRs! |
I was just starting a project from scratch. It would run after running Hopefully that helps ... |
Yeah it seems that See here: https://github.com/oney/react-native-webrtc/search?utf8=%E2%9C%93&q=import+%22 A bunch of these need to be converted. If it says |
same problem to me! |
Problem with react-native-fbsdk and Facebook iOS SDK, its the same :( |
I tried what @ericvicenti said above and changed all |
@SMJ93 remove all the React Native related |
Finally!! I managed to fix the error by |
I got it working by upgrading to the most recent github version of |
A lot of the 3rd party libraries have yet to release stable versions with RN 0.40 fix, and it can get frustrating very quickly. We confronted with this problem as well, on several packages. I described our approach and am leaving the link here so that others can use it to continue working asap. |
For me fix was: hit y for all iOS files |
@nihgwu 'remove all the React Native related Header Search Paths in 3rd party libraries' how to do that? |
@nihgwu @brunolemos the same problem happened for react native 0.43.4. It should be solved with correct process neither to change all #import "RCTBridge.h" to #import <React/RCTBridge.h>. This solution is pretty bad。So. hope for all your Answer. THX. |
Description
Can't build project after upgrading to 0.40.
PS1: Upgraded from 0.39 using react-native-git-upgrade.
PS2: I compared the diff with this 0.39..0.40 diff and they are identical, so the upgrade went fine.
Additional Information
Screenshot
The text was updated successfully, but these errors were encountered: