I was also getting this issue and solved by running below command.
ng update @angular/cli --migrate-only --from=<WhateverVersionYouAreCurrentlyOn>
e.g.
ng update @angular/cli --migrate-only --from=1.7.3
getting ref from here
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…