ValidationError: Invalid options object. Dev Server has been initialized using an options object th
ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
·
ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
运行别人的vue项目时,先使用npm install命令,再使用npm run serve命令。
在使用npm run serve命令时报错,错误如下:
ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
- options has an unknown property ‘disableHostCheck’. These properties are valid:
object { allowedHosts?, bonjour?, client?, compress?, devMiddleware?, headers?, historyApiFallback?, host?, hot?, http2?, https?, ipc?, liveReload?, magicHtml?, onAfterSetup
Middleware?, onBeforeSetupMiddleware?, onListening?, open?, port?, proxy?, server?, setupExitSignals?, setupMiddlewares?, static?, watchFiles?, webSocketServer? }
解决方法如下:
注释这一行即可
更多推荐
已为社区贡献1条内容
所有评论(0)