Hi All,
I'm seeing build errors on a brand new freshly created project (from the steps at https://microsoft.github.io/react-native-windows/docs/getting-started).
I see these errors when trying to build in Visual Studio (Version 16.8.0 Preview 3.0 [30426.262.main]):
I see these errors when trying to build from command line using npx react-native run-windows --logging
I've run the rnw-deps.ps1 script and I seem to have all the correct dependencies
Am I missing something?
Run the following in your terminal and copy the results here.
npx react-native --version
:npx react-native run-windows --info
:reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock"
Provide a detailed list of steps that reproduce the issue.
The project builds successfully
@EricCornelson This is because we use VSWhere
to locate msbuild in a VS 16.x installation but we don't include pre-release/preview bits. We've run into issues when VS upgrades that break RNW builds in real ways and require fixes to RNW to work around them (e.g. generating edit and continue symbols got broken, or UWP packaging was broken in 16.5-16.6).
We currently intentionally don't work with pre-release bits. Although maybe we can give a clear early error message while that is the case. We could have an opt-in option to support this.
The __builtin_clz
failure may indicate a problem that we'd want to know about early. We should have someone on our side look at this latest version.
Action on this looks like:
I've started a thread for the __builtin_clz issue, this seems like a breaking change we will hit in 16.8. Either we need to take an updated folly that doesn't use this intrinsic, or we need a way to get the intrinsic's behavior into 16.8.
Using this bug to track the preview issue with the CLI, and filing a new bug for the intrinsic.
__builtin_clz issue is #5987