Skip to content

Commit af7826e

Browse files
authored
Add note about npx caching and link to facebook#6119
It is necessary to uninstall any version that was previously installed for the typescript flag to work when using npx.
1 parent caf0a30 commit af7826e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docusaurus/docs/adding-typescript.md

+3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ Type errors will show up in the same console as the build one.
3333

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

36+
> **Note:** If your project is not created with typescript enabled, npx may be using a cached version of `create-react-app`.
37+
> Remove previously installed versions with `npm uninstall -g create-react-app` (see [#6119](https://github.com/facebook/create-react-app/issues/6119#issuecomment-451614035)).
38+
3639
> **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.
3740
> You are allowed to edit the generated TypeScript configuration.
3841

0 commit comments

Comments
 (0)