Personally, the best solution is:
ng update @angular/cli @angular/core
Why? Because sooner or later, you need to upgrade to Angular 9+ and the other solutions are only to downgrade it.
I was facing the same issue today until I used this solution and this one works perfectly well.