La clase está usando características angulares pero no está decorada. Agregue un decorador angular explícito.
After angular 10, all the class with service function needs to inject:
@Injectable() //reason to satisfy the compiler.
Adorable Armadillo