my output of error:
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. -
You should use the migration utility to migrate your webpack config files, it worked for me.
The migration documentation is also useful.