I mean it dependencies have updated A lot and there are many breaking changes
webpack ^4.29.3 → ^5.74.0
webpack-cli ^3.1.0 → ^4.10.0
webpack-dev-server ^3.1.5 → ^4.11.1
I guess you shouldn't have used webpack then 😝
simply use --target web I suppose.