my output of error:
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. -
Working for me below webpack.config.js
module.exports = { entry: [ '.src/index.js' ], output:{ path: __dirname, filename: 'app/js/main.js' }, module:{ rules: [ { test: /\.css$/, use: 'css-loader' }, { test: /\.ts$/, use: 'ts-loader' } ] } }