error TS1086: An accessor cannot be declared in an ambient context. ng spy code example
Example: angular An accessor cannot be declared in an ambient context.
ng update --next @angular/cli --force
npm install typescript@latest
ng update --next @angular/cli --force
npm install typescript@latest