Upon executing a controller with Loopback 4, I encounter a 500 error:
Unhandled error in GET /v1/me/societes: 500 Error: No design-time type metadata found while inspecting FirebaseAuthService.constructor[2]. You can either use `@service(ServiceClass)` or ensure `emitDecoratorMetadata` is enabled in your TypeScript configuration. Run `tsc --showConfig` to print the final TypeScript configuration of your project.
I suspect that the issue lies in the injection of FirebaseService
here :
@injectable({scope: BindingScope.SINGLETON})
export class FirebaseAuthService {
constructor(
@repository(UtilisateurRepository)
public utilisateurRepository: UtilisateurRepository,
@repository(TokenRepository)
public tokenRepository: TokenRepository,
@service(FirebaseService)
public firebaseService: FirebaseService,
) {}
However, the FirebaseService
class appears to be properly defined:
@injectable({scope: BindingScope.SINGLETON})
export class FirebaseService {
All my service classes reside in the src/services
directory, which should be registered by Loopback. Could it be possible that my issue is unrelated to service injections?
I have been grappling with this for hours. Does anyone have any insights?
Thank you for your assistance!
Olivier