问答详情
源自:2-1 建立项目的 webpack 配置文件

webpack-dev-server报错

× 「wds」: 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`).


提问者:astros001 2018-07-20 09:52

个回答

  • 鱼在锅里
    2018-07-24 15:10:13

    是webpck --save -dev吧(你怕错直接打webpck -d 不就行啦)