React create-react-app Build fails after eject: Cannot find module '@babel/plugin-transform-react-jsx'

运行

npm run eject

出现报错

Build fails after eject: Cannot find module '@babel/plugin-transform-react-jsx' 

解决方法

1.删除 node_modules 文件夹
2.运行 yarn
3.重新 npm start

 

posted @ 2019-03-11 16:33  Cynthia娆墨旧染  阅读(3233)  评论(1编辑  收藏  举报