my output of error:
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. -
Use rules in webpack 4 instead of loaders.
rules
loaders
https://webpack.js.org/concepts/loaders/