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 (E:\后台管理\element-admin\node_modules\schema-utils\src\validateOptions.js:32:11)
at new Server (E:\后台管理\element-admin\node_modules\webpack-dev-server\lib\Server.js:57:5)
at serve (E:\后台管理\element-admin\node_modules\@vue\cli-service\lib\commands\serve.js:172:20)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! element-admin@0.1.0 serve: `vue-cli-service serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the element-admin@0.1.0 serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2022-02-15T03_15_17_843Z-debug.log
当出现这种错误时,一般都是vue.config.js中配置文件出错,仔细检查是不是路径什么的书写错误。