React Native Windows 0.83 does not support `REACT_EAGER_TURBO_MODULE` (while 0.81 does)
维护者通常 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 内容生成。
描述
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
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/react-native-windows 的其他 Issue
-
Needs: Triage :mag:
难度 2/5 1-3 小时 新手友好度 82/100
microsoft/react-native-windows#16340 ·
维护者通常 2 天内回复
-
bug Needs: Triage :mag:
难度 2/5 1-3 小时 新手友好度 68/100
microsoft/react-native-windows#16321 · 1 条评论 ·
维护者通常 2 天内回复
-
Single-line TextInput text is drawn below center and clipped on ARM64 (New Architecture)可能已有人在做 @ryfow 于 1 天前认领。 未关闭bug Needs: Triage :mag:
难度 2/5 1-3 小时 新手友好度 35/100
microsoft/react-native-windows#16481 ·
维护者通常 2 天内回复
-
Needs: Triage :mag:
难度 5/5 一周以上 新手友好度 30/100
microsoft/react-native-windows#16442 · 2 条评论 ·
维护者通常 2 天内回复
-
Fabric: activating the window doesn't announce the window or the focused control to a screen reader未关闭Needs: Triage :mag:
难度 4/5 3-5 天 新手友好度 48/100
microsoft/react-native-windows#16435 ·
维护者通常 2 天内回复
查看 microsoft/react-native-windows 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 66/100
leanprover/lean4#15683 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
touhouworldcup/thprac#414 ·