Validation error: webpack dev server invalid options

When Vue starts the project yarn serve or NPM run dev
If an error message appears when Vue starts the project: validationerror: webpack dev server invalid options
cause of the problem:
the “proxy” object value used to solve the cross domain problem in the configuration file is empty

Solution:
find config.js Modify the contents of the document( webpack.config.js Or vue.config.js )
find devserver and comment out the proxy in it

Read More: