0

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

1 回答 1

-1

我在这条线索中找到了答案 - npm run dev failed : ValidationError: Invalid options object

https://stackoverflow.com/a/62680933 - 就是这样。完全忘记“模式”这个词

于 2021-02-08T10:17:17.887 回答