As others told already, the error is only masking the real problem.
For me it was the fact that my global Angular CLI version was lower than the one of my project.
Running npm i -g @angular/cli@ solved the problem and the real error could be displayed and fixed.