/ 前端

运行vue-cli-service serve报错:Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.

因为要帮忙修改别人的项目内容,折腾了好久,又是降级又是安装模块,结果又报这个错误
Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. – options has an unknown property ‘noInfo’. These properties are valid:
object { allowedHosts?, bonjour?, client?, compress?, devMiddleware?, headers?, historyApiFallback?, host?, hot?, http2?, https?, ipc?, liveReload?, magicHtml?, onAfterSetupMiddleware?, onBeforeSetupMiddleware?, onListening?, open?, port?, proxy?, server?, setupExitSignals?, setupMiddlewares?, static?, watchFiles?, webSocketServer? }
错误代码

网上搜了好久,最后找到,把vue.config.js里的devServer内容注释了,重新运行即可

感谢: https://segmentfault.com/q/1010000011198393

0

  1. This post has no comment yet

发表回复

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据