angular An accessor cannot be declared in an ambient context.

JavaScript
ng update --next @angular/cli --force
npm install typescript@latest
Source

Also in JavaScript: