I'm facing an issue with ngx-translate while integrating it with an interceptor in my Ionic Capacitor application. When attempting to access the translate service within the interceptor, I facing the following error:
My project specs
Angular CLI: 16.2.5
Node: 18.19.0
Package Manager: npm 10.2.3
OS: win32 x64
Angular: 16.2.8
... animations, cdk, common, compiler, compiler-cli, core, forms
I'm facing an issue with ngx-translate while integrating it with an interceptor in my Ionic Capacitor application. When attempting to access the translate service within the interceptor, I facing the following error:
My project specs
Angular CLI: 16.2.5
Node: 18.19.0
Package Manager: npm 10.2.3
OS: win32 x64
Angular: 16.2.8
... animations, cdk, common, compiler, compiler-cli, core, forms
... language-service, material, platform-browser
... platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1602.5
@angular-devkit/build-angular 16.2.5
@angular-devkit/core 16.2.5
@angular-devkit/schematics 16.2.5
@angular/cli 16.2.5
@angular/google-maps 16.2.9
@schematics/angular 16.2.5
rxjs 7.8.1
typescript 5.0.4
zone.js 0.14.0
` my app.module.ts
my interceptor
app.component.ts
I think there might be an issue with how the TranslateService is being injected or accessed within the interceptor, but I'm not sure.