Skip to content

Commit

Permalink
Add an extra command to the troubleshooting guide for typescript temp…
Browse files Browse the repository at this point in the history
…late (#2954)

Co-authored-by: Nicola Corti <corti.nico@gmail.com>
  • Loading branch information
DibyajyotiMishra and cortinico committed Feb 7, 2022
1 parent ee77d41 commit 7ab3a75
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions docs/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,18 @@ You can use the [TypeScript template][ts-template]:
npx react-native init MyApp --template react-native-template-typescript
```

> **Note:** If the above command is failing, you may have an old version of `react-native` or `react-native-cli` installed globally on your system. To fix the issue try uninstalling the CLI:
>
> - `npm uninstall -g react-native-cli` or `yarn global remove react-native-cli`
>
> and then run the `npx` command again.
:::note

If the above command is failing, you may have an old version of `react-native` or `react-native-cli` installed globally on your system. To fix the issue try uninstalling the CLI:

- `npm uninstall -g react-native-cli` or `yarn global remove react-native-cli`

and then run the `npx` command again.
Optionally, you can also use the command given below to get started with your template.

- `npx react-native --ignore-existing init MyApp --template react-native-template-typescript`

:::

You can use [Expo][expo] which has two TypeScript templates:

Expand Down

0 comments on commit 7ab3a75

Please sign in to comment.