问答详情
源自:-

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

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? }


提问者:qq_万梦磊_0 2019-01-25 17:00

个回答

  • PayneW
    2019-02-09 11:26:53

    webpack.config.js 错误,原因是这个配置文件的版本和我们当前安装的 webpack 的版本不匹配。