I am using as an environment, a Cloud9.io ubuntu VM Online IDE and I have reduced by troubleshooting this error to just running the app with Webpack dev server.
I l
This is what worked for me:
Add allowedHosts under devServer in your webpack.config.js:
devServer: { compress: true, inline: true, port: '8080', allowedHosts: [ '.amazonaws.com' ] },
I did not need to use the --host or --public params.