Open Flying-Cake opened 1 year ago
webpack-dev-server
has been updated from v3 to v4 since @vue/cli v5
overlay
option were moved to the client option:
v3
module.exports = {
devServer: {
clientLogLevel: "info",
overlay: true,
progress: true,
},
};
v4
module.exports = {
devServer: {
client: {
logging: "info",
// Can be used only for `errors`/`warnings`
//
// overlay: {
// errors: true,
// warnings: true,
// }
overlay: true,
progress: true,
},
},
};
Refs:
感谢您的来信,我已经收到。----良良
Version
5.0.8
Environment info
Steps to reproduce
在vue.config.js 中配置devServer.overlay,然后运行serve
What is expected?
支持devServer.overlay,或者更新文档
What is actually happening?
ValidationError: Invalid options object. Dev Server has been initialized using an options object that does n ot match the API schema.