Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#269 0 commenti 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
android, cmake, cpp, react-native

Direzione di ricerca

Start by reproducing the Android build with newArchEnabled=true and hermesEnabled=true, then inspect the CMake configuration and patches/react-native-worklets-core+1.6.2.patch mentioned in the issue. Trace why rnworklets cannot find hermes-engine::libhermes. Done means the project builds successfully with Hermes and the New Architecture enabled.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
C++
Stelle
791
Fork
65
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di margelo/react-native-worklets-core

Tutte le issue di margelo/react-native-worklets-core

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.