ERROR NullInjectorError: R3InjectorError(t)[t -> t -> t -> t]: NullInjectorError: No provider for t!
You are trying to use a service that is not listed
in providers of your AppModule.
Add the service to a providers list to make it work.
To find which is missing run this command:
ng serve --prod --optimization=false