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
When we want to use other TypeScript version and we do:
`npm install [email protected] -D`
But when we use new features like const casting microsoft/TypeScript#29510 it does not compile.
Instead of that if we use:
`yarn add [email protected]`
Everything works
Copy file name to clipboardexpand all lines: docusaurus/docs/adding-typescript.md
+2
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,8 @@ To learn more about TypeScript, check out [its documentation](https://www.typesc
38
38
> **Note:** If your project is not created with TypeScript enabled, npx may be using a cached version of `create-react-app`.
39
39
> Remove previously installed versions with `npm uninstall -g create-react-app` (see [#6119](https://github.com/facebook/create-react-app/issues/6119#issuecomment-451614035)).
40
40
41
+
> **Note:** If you want to use your own TypeScript version, use yarn instead of npm, otherwise create react app will use internal version.
42
+
41
43
> **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.
42
44
> You are allowed to edit the generated TypeScript configuration.
0 commit comments