can't resolve './src' in code example
Example: webpack Error can't resolve ./src
make shore that you write "webpack.config.js" and not "webpack-config.js"
make shore that you write "webpack.config.js" and not "webpack-config.js"