ValidationError: Invalid options object. Ignore Plugin has been initialized using an options object that does not match the API schema.
- options should be one of these:
object { resourceRegExp, contextRegExp? } | object { checkResource }
Details:
* options misses the property 'resourceRegExp'. Should be:
RegExp
-> A RegExp to test the request against.
* options misses the property 'checkResource'. Should be:
function
-> A filter function for resource and context.
解决方法:
删除项目内nodemodules的webpackpack所有版本
重新安装低版本webpack
yarn run webpack@4.46.0 --save-dev 或者 npm install webpack@4.46.0 --save-dev