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

React Native Windows 0.83 does not support `REACT_EAGER_TURBO_MODULE` (while 0.81 does)

Aperta
#16,479 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp, react-native

Direzione di ricerca

Compare the REACT_EAGER_TURBO_MODULE change in PR #16093 and its 0.81 backport in PR #16095 with the 0.83 stable branch and 0.83.2 release. Start by locating the macro definition and the Windows build project that includes MainRuntimeInstaller.h; the reported compile error is C4430. Done means the macro is available in 0.83 and the supplied usage compiles.

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

Descrizione

bug Needs: Triage :mag:
Problem Description

It seems #16093 (the PR introducing REACT_EAGER_TURBO_MODULE), which landed on main and was backported to 0.81 in #16095, was never cherry-picked into 0.83 (it's neither on 0.83-stable, nor the current 0.83.2 npm release).

Steps To Reproduce

Try using REACT_EAGER_TURBO_MODULE, as we do in expo-desktop with React Native Windows 0.81.37:

REACT_EAGER_TURBO_MODULE(ExpoMainRuntimeInstaller);
struct ExpoMainRuntimeInstaller {
  using ModuleSpec = ExpoDesktopModulesCoreCodegen::ExpoMainRuntimeInstallerSpec;

We get a compile-time failure:

× Building Solution: ExpoDesktopStubs.vcxproj -> C:\Users\jamie\Downloads\expod-beta\MyApp\windows\ARM64\Debug\E...
- Build failed with message C:\Users\jamie\Downloads\expod-beta\MyApp\node_modules\expo-desktop-modules-core\windows\ExpoModulesCore\MainRuntimeInstaller.h(26,1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\jamie\Downloads\expod-beta\MyApp\node_modules\expo-desktop-modules-core\windows\ExpoModulesCore\ExpoModulesCore.vcxproj]. Check your build configuration.
Expected Results

It should compile just fine.

CLI version

Not using RNC-CLI. Directly using @react-native-windows/cli 0.83.2.

Environment
System:
  OS: Windows 11 10.0.26100
  CPU: (4) arm64 Apple Silicon
  Memory: 421.79 MB / 7.99 GB
Binaries:
  Node:
    version: 24.21.0
    path: C:\Users\jamie\AppData\Local\mise\installs\node\24.21.0\node.EXE
  Yarn:
    version: 1.22.22
    path: C:\Program Files (x86)\Yarn\bin\yarn.CMD
  npm:
    version: 12.0.2
    path: C:\Users\jamie\AppData\Local\mise\installs\npm\latest\node_modules\.bin\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
  Windows SDK:
    AllowDevelopmentWithoutDevLicense: Enabled
    AllowAllTrustedApps: Enabled
    Versions:
      - 10.0.19041.0
      - 10.0.22621.0
      - 10.0.26100.0
IDEs:
  Android Studio: Not Found
  Visual Studio:
    - 17.14.37614.0 (Visual Studio Community 2022)
    - 18.9.12112.369 (Visual Studio Community 2026)
Languages:
  Java: Not Found
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 19.2.0
    wanted: 19.2.0
  react-native:
    installed: 0.83.10
    wanted: 0.83.10
  react-native-windows:
    installed: 0.83.2
    wanted: 0.83.2
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

info React Native v0.87.1 is now available (your project is running on v0.83.10).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.87.1
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.83.10&to=0.87.1
info For more info, check out "https://reactnative.dev/docs/upgrading?os=windows".

Done in 35.6s using pnpm v12.11.2
Community Modules

No response

Target React Native Architecture

New Architecture (WinAppSDK) Only

Target Platform Version

None

Visual Studio Version

None

Build Configuration

None

Snack, code example, screenshot, or link to a repository

No response

Lingua principale
C++
Stelle
17.4k
Fork
1.2k
Merge medio
3g 10m
PR unite (30g)
14

Preparare l'ambiente

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 microsoft/react-native-windows

Tutte le issue di microsoft/react-native-windows

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.