我学习 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)