打包时报这个错误怎么解决呢?感谢

来源:-

qq_万梦磊_0

2019-01-25 17:00

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.

 - configuration.module.rules[1] has an unknown property 'user'. These properties are valid:

   object { compiler?, enforce?, exclude?, include?, issuer?, loader?, loaders?, oneOf?, options?, parser?, query?, resolve?, resource?, resourceQuery?, rules?, sideEffects?, test?, type?, use? }


写回答 关注

1回答

  • PayneW
    2019-02-09 11:26:53
    webpack.config.js 错误,原因是这个配置文件的版本和我们当前安装的 webpack 的版本不匹配。


Vue+Webpack打造todo应用

用前端最热门框架Vue+最火打包工具Webpack打造todo应用

84605 学习 · 787 问题

查看课程

相似问题