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

来源:4-2 使用 babel-loader 转换 ES6 代码(上)

qq_轻描淡写青春年华的邂逅_1

2018-11-21 11:55

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 { defaultRules?, exprContextCritical?, exprContextRecursive?, exprContextRegExp?, exprContextRequest?, noParse?, rules?, strictExportPresence?, strictThisContextOnImports?, unknownContextCritical?, unknownContextRecursive?, unknownContextRegExp?, unknownContextRequest?, unsafeCache?, wrappedContextCritical?, wrappedContextRecursive?, wrappedContextRegExp? }

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

总是提示这个,解决不掉,是什么错,能否帮忙看看


写回答 关注

1回答

  • 快乐的小牛妞
    2018-12-05 17:44:40

    你的版本过高吧,这个得用rules

webpack深入与实战

webpack实战教程,用真实项目带你探索 webpack 强大的功能

86561 学习 · 721 问题

查看课程

相似问题