From af7826e5eabe82ff9e8150aa9146d3b97084b372 Mon Sep 17 00:00:00 2001 From: Taylor Briggs Date: Sat, 9 Feb 2019 12:44:00 -0500 Subject: [PATCH 1/2] Add note about npx caching and link to #6119 It is necessary to uninstall any version that was previously installed for the typescript flag to work when using npx. --- docusaurus/docs/adding-typescript.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docusaurus/docs/adding-typescript.md b/docusaurus/docs/adding-typescript.md index d67cee32b8..e8e935a568 100644 --- a/docusaurus/docs/adding-typescript.md +++ b/docusaurus/docs/adding-typescript.md @@ -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. From 37315240b1cedb30ee7a4ab5838ee3253115e64f Mon Sep 17 00:00:00 2001 From: Ian Sutherland Date: Tue, 12 Mar 2019 10:16:40 -0400 Subject: [PATCH 2/2] Use proper casing for TypeScript Co-Authored-By: TaylorBriggs --- docusaurus/docs/adding-typescript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/docs/adding-typescript.md b/docusaurus/docs/adding-typescript.md index e8e935a568..edb5dd3aad 100644 --- a/docusaurus/docs/adding-typescript.md +++ b/docusaurus/docs/adding-typescript.md @@ -33,7 +33,7 @@ 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`. +> **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.