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

4-2 11:25秒处 babel的配置我按照老师写的报错

老师是这样写的http://img1.sycdn.imooc.com//5aa4b3890001541403760263.jpg

但是报错了

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

后来看到官网是类似这样写的http://img1.sycdn.imooc.com//5aa4b3bb0001a93204340320.jpg

正在回答

1 回答

webpack版本不一样。老师那个版本是老古董了

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

举报

0/150
提交
取消

4-2 11:25秒处 babel的配置我按照老师写的报错

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