Open alimony opened 2 years ago
Thanks for reporting! A workaround, for now, would be reinstalling the dependencies so that yarn can resolve to the latest version of webpack-dev-server.
Rerun npm install
was not helping for my case. Had to fallback to @vue/cli-service@v5.0.0-rc.1
to make it work.
Had the same issue. Deleting both node_modules
and package-lock.json
did the trick before running npm install
.
Just had the same error. I can confirm that deleting node_modules
and package-lock.json
before running npm install
resolved the issue.
the setupMiddlewares option was added in webpack 4.7.0 https://webpack.js.org/configuration/dev-server/#devserversetupmiddlewares so I had to upgrade my webpack-cli for it to work
Version
5.0.0-rc.2
Environment info
Steps to reproduce
yarn serve
What is expected?
No errors.
What is actually happening?
I get the following error:
setupMiddlewares was introduced in webpack-dev-server 4.7.0 but Vue CLI does not require that minimum version.