ValidationError: Invalid options object. Dev Middleware has been initialized using an options object that does not match the API schema

4.4k views Asked by At

Currently learning React JS, I am still newbie regarding these technologies.

After updating the webpack from 4.30.0 to 5.10.0 then I run npm start, some errors appeared as below. I have tried to delete node_modules and reinstall, then npm start, it doesn't change anything.

Dependencies :

"webpack": "^5.10.0",
"webpack-cli": "^4.2.0",
"webpack-dev-middleware": "4.0.2",
"webpack-hot-middleware": "2.25.0",
"webpack-pwa-manifest": "4.3.0",

Error : 1

1

There are 1 answers

1
norekhov On

Solved similar issue with upgrading

    "webpack-dev-server": "^4.0.0-beta.3",

I believe 3.x is not fully compatible.