error in main module not found error can't resolve './src' webpack 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"