I added all services to my app module provider and All services have this
@Injectable({ providedIn: "root", })
But still, I'm getting this error. I tried all the way
ERROR NullInjectorError: R3InjectorError(D)[Zs -> Zs]: NullInjectorError: No provider for Zs!
My app module code
providers: [
{
provide: LocationStrategy,
useClass: HashLocationStrategy
},
{
provide: HTTP_INTERCEPTORS,
useClass: HttpConfigInterceptor,
multi: true
},
],