In my case, only deploying webpack-cli (Not webpack) to 4.10 and updating the package.json fixed the issue.
In summary: