Skip to content

'RCTFabricComponentsPlugins.h' file not found fabric error in new arch #48713

Open
@gurkan-baykan

Description

Image

Description

Although I created the structures in the Fabric documentation exactly, my objc-c class of the fabric plugin cannot find it, frankly, I could not find many resources, I created the c++ and header files that fabric needs with codegen, but I still continue to get this error 'RCTFabricComponentsPlugins.h' file not found
but if I do my import like this #import <React/RCTFabricComponentsPlugins.h> instead of #import “RCTFabricComponentsPlugins.h”, this time other errors come up, it cannot find the protocols, I showed pictures
can you help me what is the problem here?
https://github.com/reactwg/react-native-new-architecture/blob/main/docs/fabric-native-components.md#rtncenteredtextmm I am doing exactly the example at this address but it does not work, I get an error for the ios side

Steps to reproduce

tst

React Native Version

0.76.5

Affected Platforms

Runtime - iOS

Areas

Fabric - The New Renderer

Output of npx react-native info

System:
  OS: macOS 14.2
  CPU: (12) arm64 Apple M2 Pro
  Memory: 72.13 MB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.0.0
    path: ~/.nvm/versions/node/v22.0.0/bin/node
  Yarn:
    version: 3.6.4
    path: /usr/local/bin/yarn
  npm:
    version: 10.5.1
    path: ~/.nvm/versions/node/v22.0.0/bin/npm
  Watchman:
    version: 2024.08.12.00
    path: /usr/local/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.4
      - iOS 17.4
      - macOS 14.4
      - tvOS 17.4
      - visionOS 1.1
      - watchOS 10.4
  Android SDK:
    Android NDK: 22.1.7171670
IDEs:
  Android Studio: 2024.2 AI-242.23339.11.2421.12550806
  Xcode:
    version: 15.3/15E204a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 20.0.2
    path: /usr/bin/javac
  Ruby:
    version: 3.3.0
    path: /Users/gurkan/.rvm/rubies/ruby-3.3.0/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react: Not Found
  react-native: Not Found
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Stacktrace or Logs

'RCTFabricComponentsPlugins.h' file not found

Reproducer

(https://github.com/gurkan-baykan/LineChart)

Screenshots and Videos

Image

Image

Image

Metadata

Assignees

No one assigned

    Labels

    Needs: AttentionIssues where the author has responded to feedback.Needs: ReproThis issue could be improved with a clear list of steps to reproduce the issue.Newer Patch AvailableType: New ArchitectureIssues and PRs related to new architecture (Fabric/Turbo Modules)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions