问答详情
源自:4-2 使用 babel-loader 转换 ES6 代码(上)

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

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`).

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


提问者:qq_轻描淡写青春年华的邂逅_1 2018-11-21 11:55

个回答

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

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