vue 项目npmrun 报错:ValidationError: Invalid options object. Ignore Plugin has been initialized using an
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, context
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
cnpm install webpack@4.46.0 --save-dev
更多推荐
所有评论(0)