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.

Unable to build debug with react native 0.67.3

See original GitHub issue

Describe the bug After upgrading to RN 0.67.3, I can’t build my app because of this error

Declaration of 'RCTBubblingEventBlock' must be imported from module 'React.RCTComponent' before it is required

The error when I’m trying to run is using bash: CompileC /Users/[user]/Library/Developer/Xcode/DerivedData/[app]-acyywdzqrwcxjmcgsnxsusgggtux/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-date-picker.build/Objects-normal/x86_64/DatePicker.o /Users/bravebinary/git_repo/ecotrak/[app]/node_modules/react-native-date-picker/ios/RNDatePicker/DatePicker.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-date-picker' from project 'Pods') When I test the same project with react native 0.66.4, I see no build error

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:8
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
technyx-ali-rehmancommented, Mar 17, 2022

Add #import <React/RCTView.h> to the top of DatePicker.m

This will solve the missing import issue

0reactions
Seanmclemcommented, Aug 10, 2022

Fixed in v4.2.2

Still have this issue in 4.2.2

EDIT: I had some stale pods or something. Clearing them out, and the pod-lock file, did the trick.

Followed this SO answer https://stackoverflow.com/a/60581016/3705183

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android with RN 0.67.3 crashes when running custom build ...
Does not crash in debug and does not crash when launching the app in release build type (pre-defined). Version. 0.67.3. Output of npx...
Read more >
Troubleshooting - React Native
If you added React Native manually to your project, make sure you have included all the relevant dependencies that you are using, ...
Read more >
Execution failed for task ':react-native-webview ...
If you face the issue from Nov 4th 2022,. Fix for react-native >= 0.63 and lower than 0.67. In android/buld.gradle file, // Top-level...
Read more >
Debugging common React Native issues on Android - Blog
The terminal says the problem is: FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':app'. > ......
Read more >
React Native App - Automatic Setup - Flipper
Starting with React Native 0.62, after generating your project with react-native init, the Flipper integration is ready out of the box for debug...
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