Skip to content

CMake error: hermes-engine::libhermes target not found when building react-native-worklets-core with New Architecture enabled #269

@Soumya7681

Description

@Soumya7681

Description

When building an Android project using react-native-worklets-core, the build fails with a CMake error related to Hermes linking.

Error

Target "rnworklets" links to target "hermes-engine::libhermes" but the target was not found.

Environment

  • React Native: [your version]
  • react-native-reanimated: [your version]
  • react-native-worklets-core: 1.6.2
  • Platform: Android
  • Hermes: Enabled
  • New Architecture: Enabled

Steps to Reproduce

  1. Enable new architecture:

newArchEnabled=true
hermesEnabled=true

  1. Install dependencies
  2. Run:

npx react-native run-android

Expected Behavior

Project should build successfully with Hermes + New Architecture.

Actual Behavior

Build fails during CMake configuration step.

Patch / Diff

PASTE YOUR PATCH FILE CONTENT HERE
Additional Notes

Disabling new architecture (newArchEnabled=false) resolves the issue.


---

## ✅ Step 6: Paste your patch

👉 Copy entire content of:

```bash
patches/react-native-worklets-core+1.6.2.patch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions