Setting up the webpack

Hi,

I am getting that error when trying to deploy my react dapp with heroku using webpack -p:

I tried uninstall webpack, add “build”: “webpack --config build/webpack.conf.js --color” but it cause another error:

What can I do? I also tried this about setting up the webpack: https://www.valentinog.com/blog/react-webpack-babel/
but didn’t work