Skip to content

Commit 5e7ab72

Browse files
Fix version in Getting Started documentation
Fixes microsoft/react-native-windows#15081. Running the first command in React Native Windows' Getting Started documentation fails with > error Cannot read properties of null (reading 'major'). Dropping the quotes fixes this issue. react-native-community/cli docs also refer to these versions without quoting them.
1 parent e9602af commit 5e7ab72

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

docs/getting-started.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ For information around how to set up React Native, see the [React Native Getting
1515

1616
Call the following from the place where you want your project directory to live:
1717

18-
<!-- Note, make sure both `@react-native-community/cli@ABC` and `--version "XYZ"` are pointing to the correct NPM tags in the command below. -->
18+
<!-- Note, make sure both `@react-native-community/cli@ABC` and `--version XYZ` are pointing to the correct NPM tags in the command below. -->
1919

20-
<!-- 1. For the next version (i.e. in docs/getting-started.md) use "next" for the CLI and "nightly" for the RN version -->
21-
<!-- 2. For stable versions in versioned_docs use "latest" for the CLI and the semantic version, i.e. "^0.73.0" for the RN version -->
20+
<!-- 1. For the next version (i.e. in docs/getting-started.md) use `next` for the CLI and `nightly` for the RN version -->
21+
<!-- 2. For stable versions in versioned_docs use `latest` for the CLI and the semantic version, i.e. `^0.73.0` for the RN version -->
2222

2323
<!-- See https://www.npmjs.com/package/@react-native-community/cli?activeTab=versions for the CLI version tags. -->
2424
<!-- See https://www.npmjs.com/package/react-native?activeTab=versions for the RN version tags. -->
2525

2626
```bat
27-
npx --yes @react-native-community/cli@next init <projectName> --version "nightly"
27+
npx --yes @react-native-community/cli@next init <projectName> --version nightly
2828
```
2929

3030
### Navigate into this newly created directory
@@ -37,10 +37,10 @@ cd <projectName>
3737

3838
### Add React Native Windows to your project's dependencies
3939

40-
<!-- Note, make sure "version" is pointing to the correct react-native-windows NPM tag in the command below. -->
40+
<!-- Note, make sure `version` is pointing to the correct react-native-windows NPM tag in the command below. -->
4141

42-
<!-- 1. For the next version (i.e. in docs/getting-started.md) use "canary" -->
43-
<!-- 2. For other versions in versioned_docs use the version in the format "^0.XY.0" -->
42+
<!-- 1. For the next version (i.e. in docs/getting-started.md) use `canary` -->
43+
<!-- 2. For other versions in versioned_docs use the version in the format `^0.XY.0` -->
4444

4545
Next you'll want to add `react-native-windows` as a dependency:
4646

0 commit comments

Comments
 (0)