Skip to content

Android build fails: Hermes prefab target not found on RN 0.86 #32

Description

@DevAdi-Man

Environment

   
react-native-worklets-core (fill in — run npm ls react-native-worklets-core)
react-native 0.86.0
react 19.2.3
expo 57.0.7 (SDK 57)
@borndotcom/react-native-godot (fill in your installed version)
NDK 27.0.12077973
CMake 3.22.1
OS Linux
Package manager bun

Summary

Android build fails while compiling react-native-worklets-core, which is pulled in as a dependency of @borndotcom/react-native-godot (I didn't install it directly).

I suspect this package is pinned to an older version of react-native-worklets-core that doesn't yet support React Native 0.86's Hermes prefab setup. I haven't tried to fix it myself — raising this so maintainers can confirm and update the pinned version if that's the cause.

Steps to reproduce

  1. Create a bare React Native 0.86.0 project.
  2. Install @borndotcom/react-native-godot.
  3. Run npx react-native run-android.

Error

> Task :react-native-worklets-core:configureCMakeDebug[arm64-v8a] FAILED

CMake Error at CMakeLists.txt:24 (add_library):
Target "rnworklets" links to target "hermes-engine::libhermes" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?

CMake Generate step failed. Build files cannot be regenerated correctly.

Question for maintainers

Is @borndotcom/react-native-godot pinned to a specific react-native-worklets-core version? If so, could it be bumped to a version that supports RN 0.86's Hermes prefab layout?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions