This might be caused by another process using that port.
I had the same issue and was able to solve it by listing all the processes on port :8080
:
$ sudo lsof -i :8080
and then killing all of them one by one by typing:
$ kill {PID of the process}
After that, my app built again properly.
taken from here