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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



猜您在找 报错Cannot find module '@babel/plugin-transform-react-jsx' webpack.config.js配置遇到Error: Cannot find module '@babel/core'&&Cannot find module '@babel/plugin-transform-react-jsx' 问题 不想eject,还咋修改create-react-app的配置? create-react-app 遇到问题 TypeError: Cannot assign to read only property 'jsx' of object '#' create-react-app中的babel配置探索 create-react-app 后使用babel/polyfill 安装create-react-app create-react-app创建项目后运行npm run eject命令报错解决办法 react 基础篇 #2 create-react-app create-react-app 执行 yarn eject以后yarn start报错解决方案
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM