Skip to content

Commit

Permalink
Add note about npx caching and link to facebook#6119
Browse files Browse the repository at this point in the history
It is necessary to uninstall any version that was previously installed for the typescript flag to work when using npx.
  • Loading branch information
TaylorBriggs authored Feb 9, 2019
1 parent caf0a30 commit af7826e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docusaurus/docs/adding-typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ Type errors will show up in the same console as the build one.

To learn more about TypeScript, check out [its documentation](https://www.typescriptlang.org/).

> **Note:** If your project is not created with typescript enabled, npx may be using a cached version of `create-react-app`.
> Remove previously installed versions with `npm uninstall -g create-react-app` (see [#6119](https://github.com/facebook/create-react-app/issues/6119#issuecomment-451614035)).
> **Note:** You are not required to make a [`tsconfig.json` file](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html), one will be made for you.
> You are allowed to edit the generated TypeScript configuration.
Expand Down

0 comments on commit af7826e

Please sign in to comment.