Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current installation Documentation pulls incompatible React native version #13201

Closed
freercurse opened this issue May 8, 2024 · 1 comment · Fixed by microsoft/react-native-windows-samples#938
Assignees
Labels
bug Developer First Experience Issues that are going to be hit by a new developer as they first try out RNW Documentation
Milestone

Comments

@freercurse
Copy link

Problem Description

When following the included DOCS to get started and configure ENV - https://microsoft.github.io/react-native-windows/docs/getting-started

React-native nightly is suggested, however when trying to install react-native-windows, the install process errors out due to a version error

Steps To Reproduce

  1. Open IDE to new Folder
  2. npx --yes react-native@nightly init --version "nightly"
  3. cd projectName
  4. npx --yes react-native-windows-init --overwrite (ERROR HERE)

Expected Results

Successful installation.

For now removing the nightly version specification works when trying to install react native.

CLI version

13.6.6

Environment

(node:21292) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
System:
  OS: Windows 11 10.0.22631
  CPU: "(12) x64 AMD Ryzen 5 5600X 6-Core Processor             "
  Memory: 17.93 GB / 31.91 GB
Binaries:
  Node:
    version: 22.1.0
    path: C:\Program Files\nodejs\node.EXE
  Yarn: Not Found
  npm:
    version: 10.7.0
    path: C:\Program Files\nodejs\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
IDEs:
  Android Studio: Not Found
  Visual Studio:
    - 17.9.34728.123 (Visual Studio Community 2022)
Languages:
  Java: 11.0.16.1
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.74.1
    wanted: 0.74.1
  react-native-windows:
    installed: 0.74.2
    wanted: 0.74.2
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Target Platform Version

None

Target Device(s)

Desktop

Visual Studio Version

None

Build Configuration

None

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

No-code-yet

@freercurse freercurse added the bug label May 8, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: Triage 🔍 New issue that needs to be reviewed by the issue management team (label applied by bot) label May 8, 2024
@chrisglein
Copy link
Member

I believe that should be
npx --yes react-native@latest init <projectName> --version "latest"

@TatianaKapos, do we have the right instructions from this? microsoft/react-native-windows-samples#936

@chrisglein chrisglein added Documentation Developer First Experience Issues that are going to be hit by a new developer as they first try out RNW labels May 9, 2024
@chrisglein chrisglein added this to the 0.74 milestone May 9, 2024
@chrisglein chrisglein removed the Needs: Triage 🔍 New issue that needs to be reviewed by the issue management team (label applied by bot) label May 13, 2024
TatianaKapos added a commit to microsoft/react-native-windows-samples that referenced this issue May 17, 2024
## Description
Fixes version for 0.73 and 0,74. Also added a clear note in the
instructions for next time! :)

closes microsoft/react-native-windows#13201
###### Microsoft Reviewers: [Open in
CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/react-native-windows-samples/pull/938)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Developer First Experience Issues that are going to be hit by a new developer as they first try out RNW Documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants