my output of error:
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. -
You should change loaders to rules in webpack 4:
loaders
rules
change:
to:
source: Loaders
Example:
module.exports = { module: { rules: [ { test: /\.css$/, use: 'css-loader' }, { test: /\.ts$/, use: 'ts-loader' } ] } };