【发布时间】:2021-05-11 22:03:23
【问题描述】:
我学习 React 并尝试构建自己的 webpack5 + babel 设置,运行 yarn build 后我的控制台中出现此错误消息。关于如何解决这个问题或我做错了什么的任何想法?
Failed to load '/Users/admin/webpackFuel/webpack.config.js' config Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
options[0] misses the property 'patterns'. Should be: [non-empty string | object { from, to?, context?, globOptions?, filter?, toType?, force?, info?, transform?, transformPath?, noErrorOnMissing? }, ...] (should not have fewer than 1 item)
【问题讨论】: