create-react-app my-app --typescript 与 --template typescript
create-react-app my-app --typescript vs. --template typscript
有什么区别
npx create-react-app my-app --typescript
和
npx create-react-app my-apptts --template typescript
?
后一个在official documentation上提到了,但是npm start
因为它会导致错误(这里不应该讨论 - 在这个问题上我只是想了解这两个命令之间的区别)
typescript
标志自 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.
有什么区别
npx create-react-app my-app --typescript
和
npx create-react-app my-apptts --template typescript
?
后一个在official documentation上提到了,但是npm start
因为它会导致错误(这里不应该讨论 - 在这个问题上我只是想了解这两个命令之间的区别)
typescript
标志自 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.