• 手机版

    扫码体验手机版

  • 微信公众号

    扫码关注公众号

国内首家协议开发

软芯音视解码保护平台

在线
客服

发布
需求

在线
聊天

天盟
APP

天盟APP下载

关注
微信

微信扫一扫访问
顶部

react"^16.8.6" creacte-react-app@3.0.1脚手架npm run eject 问题?

请问 ,我npm run eject 后,config文件夹下怎么只有一个webpack.config.js文件? 我看教程和其他文章都写的是有2个文件的,一个是webpack.config.dev.js  开发环境下的配置项,另一个是webpack.config.prod.js  生产环境下的配置项. 如果这是由于更新后的正常现象,那么请问怎么添加less配置代码?
另外,执行npm run eject  暴露配置文件后, 执行npm run start  就一直报错, 缺少几种loader.
按照错误提示安装'@babel/plugin-transform-react-jsx-source' 后,又找不到is-wsl.  安装了is-wsl 又再次提示找不到  @babel/plugin-transform-react-jsx-source.
最后重新 npm install  ,在执行 npm run start 还是不能成功编译.提示错误:
Starting the development server...
Failed to compile.
./node_modules/react-dev-utils/formatWebpackMessages.js
Module not found: Can't resolve 'F:\react-test\my-app\node_modules\babel-preset-react-app\node_modules\@babel\runtime/helper
s/slicedToArray' in 'F:\react-test\my-app\node_modules\react-dev-utils'
Compiling...
Failed to compile.
./node_modules/react-dev-utils/formatWebpackMessages.js
Module not found: Can't resolve 'F:\react-test\my-app\node_modules\babel-preset-react-app\node_modules\@babel\runtime/helper
s/slicedToArray' in 'F:\react-test\my-app\node_modules\react-dev-utils'
Compiling...
Failed to compile.
./node_modules/react-dev-utils/formatWebpackMessages.js
Module not found: Can't resolve 'F:\react-test\my-app\node_modules\babel-preset-react-app\node_modules\@babel\runtime/helper
s/slicedToArray' in 'F:\react-test\my-app\node_modules\react-dev-utils'
请前帮我看看怎么解决这几个问题?

免责声明:本内容仅代表回答会员见解不代表天盟观点,请谨慎对待。

版权声明:作者保留权利,不代表天盟立场。

使用道具 举报

发新帖

发布任务需求已有1031166位用户正在使用天盟网服务

发布分类: *
任务预算: *
需求内容: *
手机号码: *
任务商家报价为
  • 预算价 :
  • 成交价 :
  • 完工期 :
  • 质保期 :

* 最终任务项目以服务商报价、双方协商为准!