将此代码放在config-overrides.js中 const rewireReactHotLoader = require('react-app-rewire-hot-loader')
module.exportsWebpack has been initialised using a configuration object that does not match the API schema.
代码不变:[webpack-cli] Unable to load '@webpack-cli/serve' command[webpack-cli] TypeError: options.forEach is not a function
我看到了这个问题:,但我无法实现所提议的修复(更改webpack-cli版本并从yarn.lock中删除<