me.at.coding
me.at.coding

Reputation: 17744

create-react-app my-app --typescript vs. --template typscript

What is the difference between

npx create-react-app my-app --typescript

and

npx create-react-app my-apptts --template typescript

?

The latter one is mentioned on the official documentation, but npm start for it leads to errors (that shall not be discussed here - at this question I just want to understand the differences between both commands)

Upvotes: 1

Views: 392

Answers (1)

awran5
awran5

Reputation: 4546

typescript flag has been deprecated since Create React App v4.0.0

We've removed the deprecated typescript flag when creating a new app. Use --template typescript instead. We've also dropped deprecated NODE_PATH flag as this has been replaced by setting the base path in jsconfig.json.

Official Changelog

Upvotes: 2

Related Questions