So I get the following error when I tried building my application again:
ERROR in ../../../node_modules/@angular/cdk/a11y/typings/aria-describer/aria-describer
This problem apparently was being caused by the CDK and material modules of angular. I don't exactly know how it happend but I fixed it.
I fixed it by following an answer in this github issue: https://github.com/angular/material2/issues/8306
Solution
To fix this issue you have to run the following commands:
npm install --save @angular/material @angular/cdk
rm -rf node_modules
npm install