Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭
#16,479 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
cpp, react-native

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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

主要语言
C++
星标
17.4k
派生
1.2k
平均合并
3 天 10 分钟
30 天内合并 PR
14

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/react-native-windows 的其他 Issue

查看 microsoft/react-native-windows 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。