-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Problem Description
Microsoft.ReactNative must be built with UseHermes set so the proper #definess include the code necessary for Hermes to work.
However the Microsoft.ReactNative NuGet packages aren't built with that flag, so even if you set the correct properties, Hermes won't be used.
Steps To Reproduce
- Create a new RNW app using the experimental NuGets and Hermes
npx react-native-windows-init --overwrite --useHermes --experimentalNuGetDependency - Run the app with
npx react-native run-windows
Expected Results
The app builds and runs with Hermes
CLI version
npx react-native --version
Environment
info Fetching system and libraries information...
System:
OS: Windows 10 10.0.25300
CPU: (24) x64 AMD Ryzen Threadripper PRO 3945WX 12-Cores
Memory: 51.33 GB / 63.86 GB
Binaries:
Node: 16.15.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 8.11.0 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK:
AllowDevelopmentWithoutDevLicense: Enabled
AllowAllTrustedApps: Enabled
Versions: 10.0.18362.0, 10.0.19041.0, 10.0.22000.0, 10.0.22621.0
IDEs:
Android Studio: Not Found
Visual Studio: 16.11.33214.272 (Visual Studio Enterprise 2019), 17.4.33213.308 (Visual Studio Enterprise 2022)
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.0 => 0.71.0
react-native-windows: 0.71.1 => 0.71.1
npmGlobalPackages:
*react-native*: Not FoundTarget Platform Version
10.0.19041
Target Device(s)
Desktop
Visual Studio Version
Visual Studio 2022
Build Configuration
Debug
Snack, code example, screenshot, or link to a repository
No response