-1

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 wayerror image screenshot

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
},

],

My service code look like this. My service code look like

Akhtar Raza
  • 31
  • 11
  • It would be helpful if you could provide a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) that shows the problem or error you're having, ideally in an online code editor like [Stackblitz](https://www.stackblitz.com). – Cuzy Jul 19 '23 at 07:02
  • I updated my question details. You can view it. – Akhtar Raza Jul 19 '23 at 07:10

1 Answers1

0

Run your application in dev mode, you would you be able to find exact dependency to inject in providers - add following code in to angular.json under configurations "development": { "optimization": false, "outputHashing": "all", "sourceMap": false, "namedChunks": false, "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true },

to run code in dev mode.