microsoft / react-native-windows

A framework for building native Windows apps with React.
https://microsoft.github.io/react-native-windows/
Other
16.35k stars 1.14k forks source link

Unable to create a new React Native Windows project #14121

Open priya-murthy opened 2 hours ago

priya-murthy commented 2 hours ago

Problem Description

I am trying to create a new React Native Windows project, following the instructions here: https://microsoft.github.io/react-native-windows/docs/getting-started

However, the Microsoft.Windows.CppWinRT package is not being loaded, so the project is not able to be built.

I have noticed that the Boost package is also not being imported, leading to errors about Boost source files not being found (this occurs in the Common, Folly and ReactCommon projects).

I have attached the build log here. BuildLog.txt

Steps To Reproduce

  1. npx --yes @react-native-community/cli@latest init reactsample --version "latest"
  2. cd reactsample
  3. yarn add react-native-windows@^0.76.0
  4. npx react-native init-windows --overwrite
  5. npx react-native autolink-windows
  6. Open Visual Studio and build the solution

Expected Results

No response

CLI version

15.0.1

Environment

info Fetching system and libraries information...
System:
  OS: Windows 11 10.0.22621
  CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
  Memory: 13.08 GB / 31.21 GB
Binaries:
  Node:
    version: 18.20.4
    path: C:\Program Files\nodejs\node.EXE
  Yarn:
    version: 1.22.22
    path: C:\Program Files (x86)\Yarn\bin\yarn.CMD
  npm:
    version: 10.7.0
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
  Windows SDK:
    AllowDevelopmentWithoutDevLicense: Enabled
    Versions:
      - 10.0.18362.0
      - 10.0.19041.0
      - 10.0.20348.0
      - 10.0.22000.0
      - 10.0.22621.0
      - 10.0.26100.0
IDEs:
  Android Studio: Not Found
  Visual Studio:
    - 17.12.35506.116 (Visual Studio Professional 2022)
    - 15.9.35229.15 (Visual Studio Professional 2017)
    - 16.11.35229.62 (Visual Studio Professional 2019)
Languages:
  Java: Not Found
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.1
    wanted: 15.0.1
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.2
    wanted: 0.76.2
  react-native-windows:
    installed: 0.76.0
    wanted: ^0.76.0
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Community Modules

No response

Target Platform Version

10.0.22621

Target Device(s)

Desktop

Visual Studio Version

Visual Studio 2022

Build Configuration

Debug

Snack, code example, screenshot, or link to a repository

No response

similar-issues-ai[bot] commented 2 hours ago

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.