Skip to content
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

Unable to run example app. #99

Open
OctaM opened this issue Jul 1, 2024 · 1 comment
Open

Unable to run example app. #99

OctaM opened this issue Jul 1, 2024 · 1 comment

Comments

@OctaM
Copy link

OctaM commented Jul 1, 2024

Hi, I cloned this repo and built the app, but I'm not able to run it on simulator/iphone device and I'm getting this error.

I tried adding babel with npm add @babel/runtime and reinstalling all the node packages but nothing worked.

node: v16.20.2
xcode: 15.2

`Unable to resolve module @babel/runtime/helpers/interopRequireDefault from /Users/octavian/Projects/react-native/react-native-healthkit/src/index.ios.tsx: @babel/runtime/helpers/interopRequireDefault could not be found within the project.

1 | import { Platform } from 'react-native'
2 |
3 | import useHealthkitAuthorization from './hooks/useHealthkitAuthorization'
4 | import useIsHealthDataAvailable from './hooks/useIsHealthDataAvailable'

RCTFatal
__28-[RCTCxxBridge handleError:]_block_invoke
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_drain
_dispatch_main_queue_callback_4CF
CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
-[UIApplication _run]
UIApplicationMain
main
start_sim
0x0
0x0

`

@robertherber
Copy link
Member

Are you running the app in /example or /example-expo? Currently I'd recommend using /example-expo since it's more up-to-date and the one I tested on for the latest release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants