options has an unknown property ‘disableHostCheck‘. These properties are valid:

提示:options has an unknown property ‘disableHostCheck’. These properties are valid:
在这里插入图片描述
根据报错提示
在webpack 5 中disableHostCheck应该被遗弃了
查看文档了解到需将 disableHostCheck:true
替换为
historyApiFallback: true,
allowedHosts: “all”,

重新配置vue.config.js

devServer: {
historyApiFallback: true,
allowedHosts: “all”,
}

Share