Переустановите угловое ядро
# if during the generation of a new angular project an error occurs
#the dependencies needed might not be installed.
#to reinstall them in the already created project:
cd [project-name]
npm i @angular/core
npm i @angular/platform-browser
npm install tslib
Grieving Gharial