首页 > 移动平台 > 详细

将create-react-app从javascript迁移到typescript

时间:2021-05-21 17:45:29      阅读:14      评论:0      收藏:0      [点我收藏+]

一、删除全部的 node_modules

  注意: 确保之前没有在目录下执行过 tsc --init。 如果执行过,删掉 tsconfig.json ,  src/ react-app-env.d.ts   这两个文件都删掉。没有更好。

二、安装模块

  

npm install --save typescript @types/node @types/react @types/react-dom @types/jest

  

三、npm install , 安装其他被删掉的模块

 

四、npm start 启动

将create-react-app从javascript迁移到typescript

原文:https://www.cnblogs.com/muamaker/p/14794619.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!