The solution to many Angular build problems:
Delete your node_modules folder, and your yarn.lock file and run yarn install. You should be good to go.
Using npm? Delete your node_modules folder, and your package-lock.json and run npm install.
Commit and push changes.