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