vue报错:无法启动服务器,报错(npm run dev 报错问题)(一)

vue 项目报错大全(一)
vue报错:无法启动服务器,报错(npm run dev 报错问题)
#出错背景
自己搭建的vue框架,在搭建好一个项目时忽然报错(在此之前其他项目正常运行中,搭建了新的项目启动服务时启动不了了。
#报错代码
Invalid configuration object. webpack-dev-server has been initialised using a configuration object that does not match the API schema.

  • configuration.before should be an instance of function
    Exposes the Express server to add custom middleware or routes before webpack-dev-middleware will be added…
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! vue_handle@1.0.0 start: webpack-dev-server --config config/webpack.dev.js
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the vue_handle@1.0.0 start script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    在这里插入图片描述
    npm ERR! A complete log of this run can be found in:
    #解决方案*
    通过查找发现是因为还没有编写mock文件里的内容(好低级的错误。。)
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值