Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 706
Muhammad Rafi Bahrur Rizki Avatar asked Dec 14 '20 07:12

Muhammad Rafi Bahrur Rizki


1 Answers

Solved similar issue with upgrading

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

I believe 3.x is not fully compatible.

like image 177
norekhov Avatar answered Oct 03 '22 06:10

norekhov