callstack / react-native-slider

React Native component exposing Slider from iOS and SeekBar from Android
MIT License
1.19k stars 267 forks source link

'react/renderer/components/rncore/EventEmitters.h' file not found on react-native 0.75, new Arch #631

Open efstathiosntonas opened 1 week ago

efstathiosntonas commented 1 week ago

Environment



* are you using the new architecture? YES

* which version of react & react-native are you using? react 18.3.1 and rn 0.75.2

## Description
 I'm experiencing a build issue on react-native@0.75.2 and new Arch: `'react/renderer/components/rncore/EventEmitters.h' file not found` on `RNCSliderShadowNode` when using   `@react-native-community/slider": "4.5.2"`

What I did but no luck: 
1. pod deintegrate
2. rm -rf node_modules
3. yarn install
4.  RCT_NEW_ARCH_ENABLED=1 pod install
5. build on xcode

see attached screenshot: 
![Screenshot 2024-09-02 at 15 32 31](https://github.com/user-attachments/assets/7679ffba-e820-41ca-b5e5-06bef4120e76)

## Reproducible Demo

<!--
  Let us know how to reproduce the issue. Include a code sample and share a project that reproduces the issue.
  PLEASE follow the guidelines for providing a minimal example: https://stackoverflow.com/help/mcve.
-->
efstathiosntonas commented 1 week ago

it seems that after changing the import to: #include "EventEmitters.h" from #include <react/renderer/components/rncore/EventEmitters.h> it built fine.

arstropica commented 1 week ago

I am getting the error on <react/renderer/components/rncore/EventEmitters.h> not found. Screenshot 2024-09-04 at 3 41 30 PM

arstropica commented 1 week ago

The following header search path seems to be missing from my pod build settings. When I add it manually, the error goes away.

${PODS_CONFIGURATION_BUILD_DIR}/React-FabricComponents/React_FabricComponents.framework/Headers/react/renderer/components/rncore