Skip to content

Commit 6db54c6

Browse files
yoeldovidcohenjakubdrozdek
authored andcommitted
Got this warning when using the former version (#2693)
The --typescript option has been deprecated and will be removed in a future release. In future, please use --template typescript.
1 parent e6667bc commit 6db54c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/static-type-checking.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ Create React App supports TypeScript out of the box.
175175
To create a **new project** with TypeScript support, run:
176176

177177
```bash
178-
npx create-react-app my-app --typescript
178+
npx create-react-app my-app --template typescript
179179
```
180180

181181
You can also add it to an **existing Create React App project**, [as documented here](https://facebook.github.io/create-react-app/docs/adding-typescript).

0 commit comments

Comments
 (0)