You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 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.
* Use proper casing for TypeScript
Co-Authored-By: TaylorBriggs <[email protected]>
Copy file name to clipboardExpand all lines: docusaurus/docs/adding-typescript.md
+3
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,9 @@ Type errors will show up in the same console as the build one.
33
33
34
34
To learn more about TypeScript, check out [its documentation](https://www.typescriptlang.org/).
35
35
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
+
36
39
> **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.
37
40
> You are allowed to edit the generated TypeScript configuration.
0 commit comments