From 29082fa1917718502d9ca3f6e5a16d9946f9966e Mon Sep 17 00:00:00 2001 From: Chris Shaffer <chris@methodbox.io> Date: Sun, 28 Apr 2019 12:00:48 -0500 Subject: [PATCH 1/2] amend-docs-adding-typescript Added block quote with warning about issues when CRA is installed globally. --- docusaurus/docs/adding-typescript.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docusaurus/docs/adding-typescript.md b/docusaurus/docs/adding-typescript.md index 25380216431..d7f2eb5bd04 100644 --- a/docusaurus/docs/adding-typescript.md +++ b/docusaurus/docs/adding-typescript.md @@ -16,6 +16,7 @@ npx create-react-app my-app --typescript yarn create react-app my-app --typescript ``` +> If you've previously installed `create-react-app` globally via `npm install -g create-react-app`, we recommend you uninstall the package using `npm uninstall -g create-react-app` to ensure that `npx` always uses the latest version. To add [TypeScript](https://www.typescriptlang.org/) to a Create React App project, first install it: From 10632fe23be6cdc074ddbc10c774e9cacf081743 Mon Sep 17 00:00:00 2001 From: Amy Lam <amy.r.lam@gmail.com> Date: Sun, 28 Apr 2019 14:05:27 -0500 Subject: [PATCH 2/2] Update docusaurus/docs/adding-typescript.md Co-Authored-By: methodbox <chris@methodbox.io> --- docusaurus/docs/adding-typescript.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docusaurus/docs/adding-typescript.md b/docusaurus/docs/adding-typescript.md index d7f2eb5bd04..1fb14a82ba1 100644 --- a/docusaurus/docs/adding-typescript.md +++ b/docusaurus/docs/adding-typescript.md @@ -16,6 +16,7 @@ npx create-react-app my-app --typescript yarn create react-app my-app --typescript ``` + > If you've previously installed `create-react-app` globally via `npm install -g create-react-app`, we recommend you uninstall the package using `npm uninstall -g create-react-app` to ensure that `npx` always uses the latest version. To add [TypeScript](https://www.typescriptlang.org/) to a Create React App project, first install it: