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

npm run dev 时报错

npm run dev 时报错

li唯西 2018-08-30 15:47:35
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - configuration has an unknown property 'devSever'. These properties are valid:   object { mode?, amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry?, externals?, loader?, module?, name?, node?, output?, optimization?, parallelism?, performance?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, serve?, stats?, target?, watch?, watchOptions? }   For typos: please correct them.   For loader options: webpack >= v2.0.0 no longer allows custom properties in configuration.     Loaders should be updated to allow passing options via loader options in module.rules.     Until loaders are updated one can use the LoaderOptionsPlugin to pass these options to the loader:     plugins: [       new webpack.LoaderOptionsPlugin({         // test: /\.xxx$/, // may apply this only for some modules         options: {           devSever: …         }       })     ]
查看完整描述

1 回答

?
迁就LOSE

TA贡献29条经验 获得超34个赞

配置文件有错误吧

查看完整回答
反对 回复 2018-09-17
  • 1 回答
  • 0 关注
  • 1563 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号