2***@qq.com
2***@qq.com
  • 发布:2024-04-29 10:08
  • 更新:2024-04-29 10:17
  • 阅读:140

今天突然运行H5的时候报错了

分类:uni-app

运行时出现了如下的错误:
ERROR ValidationError: webpack Dev Server Invalid Options
options should NOT have additional properties
ValidationError: webpack Dev Server Invalid Options
options should NOT have additional properties
at validateOptions (D:\HbuilderX\HBuilderX\plugins\uniapp-cli\node_modules\webpack-dev-server\node_modules\schema-utils\src\validateOptions.js:32:11)
at new Server (D:\HbuilderX\HBuilderX\plugins\uniapp-cli\node_modules\webpack-dev-server\lib\Server.js:57:5)
at serve (D:\HbuilderX\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\commands\serve.js:191:16)
at processTicksAndRejections (node:internal/process/task_queues:96:5)

小程序端运行是正常的

2024-04-29 10:08 负责人:无 分享
已邀请:
2***@qq.com

2***@qq.com (作者)

解决了自己来回答一下
将配置文件中,h5中的devServer注释即可

要回复问题请先登录注册