Skip to content

Fails to build on a fresh ARM64 react native windows app #1022

Closed
@jkoutavas

Description

@jkoutavas

What happened?

What's all this then?

 × Building Solution: C:\Users\jay\.nuget\packages\microsoft.ui.xaml\2.8.0\build\Common.targets(10,5): error : Mi...
 × Build failed with message C:\Users\jay\.nuget\packages\microsoft.ui.xaml\2.8.0\build\Common.targets(10,5): error : Microsoft.UI.Xaml nuget package requires TargetPlatformMinVersion >= 10.0.17763.0 (current project is 16299) [C:\Users\jay\dev\RNWindows\node_modules\@react-native-async-storage\async-storage\windows\ReactNativeAsyncStorage\ReactNativeAsyncStorage.vcxproj]. Check your build configuration.
Command failed. Re-run the command with --logging for more information.

I generated a fresh "RNWindows" app this morning, doing the following:

npx react-native init RNWindows --version "latest"
cd RNWindows
npx react-native-windows-init --overwrite
yarn add @react-native-async-storage/async-storage
npx react-native run-windows --arch arm64

Version

1.19.3

What platforms are you seeing this issue on?

  • Android
  • iOS
  • macOS
  • Windows
  • web

System Information

info Fetching system and libraries information...
System:
  OS: Windows 10 10.0.22621
  CPU: (4) x64 Apple Silicon
  Memory: 3.38 GB / 7.99 GB
Binaries:
  Node:
    version: 18.16.1
    path: C:\Program Files\nodejs\node.EXE
  Yarn:
    version: 1.22.19
    path: C:\Program Files (x86)\Yarn\bin\yarn.CMD
  npm:
    version: 9.7.2
    path: 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:
    - 17.6.33815.320 (Visual Studio Community 2022)
Languages:
  Java: Not Found
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.72.6
    wanted: 0.72.6
  react-native-windows:
    installed: 0.72.17
    wanted: 0.72.17
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Steps to Reproduce

On a Windows 10 machine (I use Parallels running on my Apple Silicon MacBook Pro):

npx react-native init RNWindows --version "latest"
cd RNWindows
npx react-native-windows-init --overwrite
yarn add @react-native-async-storage/async-storage
npx react-native run-windows --arch arm64

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleased

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions