rollbar / rollbar/rollbar-react-native
Error on RollbarReactNative.h file imports
Nobody has claimed this yet.
- Dominant language
- Objective-C
- Stars
- 81
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Description
When I try to build the application I got this error regarding "RCTBridgeModule.h". on file "RollbarReactNative.h"
Typedef redefinition with different types ('struct (anonymous struct at .../node_modules/react-native/React/Base/RCTBridgeModule.h:52:16)' vs 'struct RCTMethodInfo')
A solution would be to change the import order on "RollbarReactNative.h" file but I can not do that on my CI client since I don't have access to .h files.
#if __has_include(<React/RCTBridgeModule.h>)
#import <React/RCTBridgeModule.h>
#else
#import "RCTBridgeModule.h"
#endif
Any solution on that?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with RollbarReactNative.h and the RCTBridgeModule.h imports involved in the React Native build error. Reproduce the typedef redefinition failure, then inspect the import order and verify the fix by rebuilding the application without the error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- objective-c, react-native
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100