为了账号安全,请及时绑定邮箱和手机立即绑定

webpack执行时报错,无效配置对象

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

 - configuration.module has an unknown property 'loaders'. These properties are valid:

   object { exprContextCritical?, exprContextRecursive?, exprContextRegExp?, exprContextRequest?, noParse?, rules?, defaultRules?, unknownContextCritical?, unknownContextRecursive?, unknownContextRegExp?, unknownContextRequest?, unsafeCache?, wrappedContextCritical?, wrappedContextRecursive?, wrappedContextRegExp?, strictExportPresence?, strictThisContextOnImports? }

   -> Options affecting the normal modules (`NormalModuleFactory`).


正在回答

1 回答

loaders已经没有了,改成rules了,建议看下webpack的文档,里面有介绍

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

webpack执行时报错,无效配置对象

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信