Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

278
Views
Error después de inyectar un servicio a otro servicio: TypeError no capturado: no se pueden leer las propiedades de undefined (leyendo '<Clase>')

Recibo un error después de inyectar AnalyticsService desde los registros, otro módulo se ve afectado. ¿Qué podría conducir al error?

 import { AnalyticsService } from '@s4y/elements/event-log-control'; import { catchError } from 'rxjs/operators'; import { Injectable } from '@angular/core'; import { AngularFireFunctions } from '@angular/fire/compat/functions'; /** * Interface with the firebase backend. */ @Injectable({ providedIn: 'root' }) export class BackendService { constructor(private _fns: AngularFireFunctions, private _log: AnalyticsService) { } /** * Call Firebase Cloud Function * * @param fName: Function Name * @param params: Function Parameter Object */ callFunction(fName: string, params: any) { const toCall = this._fns.httpsCallable(fName); // const serviceLoader = ServiceLocator.injector.get(AnalyticsService) return toCall(params) .pipe(catchError (error => { // Getting the Error details. const code = error.code; const message = error.message; const details = error.details; console.log(JSON.stringify(error)) // Do the logging!!! // this._analytics.logEvent() // console.l/og('error') // serviceLoader.logEvent({name: fName,info:{description: e, data:{params: params}}}); // throw errors on cloud functions live // check if error http 500/ 400/ 301 / throw error; })); } }

Registros de errores

ingrese la descripción de la imagen aquí

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!