I am currently working on an Ionic v3 app and I have encountered an issue with resolving providers within two other providers.
Below is the error message I received:
Uncaught Error: Can't resolve all parameters for DialogueMetier:([object Object], [object Object], [object Object], [object Object],?, [object Object], [object Object]).
The provider that is causing this resolution error is:
import { Injectable } from '@angular/core';
import { TechniqueMetier } from './technique';
import { GlobalVarsMetier } from './global-vars';
import { SynchronisationMappingMetier } from './synchronisation-mapping-metier';
import { InformationBdd } from '../bdd/information-bdd';
import { OutilMetier } from './outil-metier';
import { NotificationMetier } from './notification-metier';
import { InformationActionMetier } from './information-action-metier';
import { InformationAssocieeMetier } from './information-associee-metier';
import { InformationDestinataireMetier } from './information-destinataire-metier';
import { InformationDossierMetier } from './information-dossier-metier';
import { EvenementMetier } from './evenement-metier';
import { DialogueMetier } from './dialogue-metier';
import { TacheMetier } from './tache-metier';
import { DocumentMetier } from './document-metier';
@Injectable()
export class InformationMetier {
constructor(
public techniqueMetier : TechniqueMetier,
public rootScope : GlobalVarsMetier,
public synchronisationMappingMetier : SynchronisationMappingMetier,
public informationBdd : InformationBdd,
public outilMetier : OutilMetier,
public notificationMetier : NotificationMetier,
public informationActionMetier : InformationActionMetier,
public informationAssocieeMetier : InformationAssocieeMetier,
public informationDestinataireMetier : InformationDestinataireMetier,
public informationDossierMetier : InformationDossierMetier,
public evenementMetier : EvenementMetier,
public dialogueMetier : DialogueMetier,
public tacheMetier : TacheMetier,
public documentMetier : DocumentMetier
) {
}
Here is the provider that cannot resolve it:
import { Injectable } from '@angular/core';
import { InformationMetier } from './information-metier';
import { InformationAssocieeMetier } from './information-associee-metier';
import { InformationDestinataireMetier } from './information-destinataire-metier';
import { SynchronisationMappingMetier } from './synchronisation-mapping-metier';
import { DossierMetier } from './dossier-metier';
import { DialogueMessageMetier } from './dialogue-message-metier';
import { DialogueBdd } from '../bdd/dialogue-bdd';
@Injectable()
export class DialogueMetier {
constructor(
public synchronisationMappingMetier : SynchronisationMappingMetier,
public informationAssocieeMetier : InformationAssocieeMetier,
public informationDestinataireMetier : InformationDestinataireMetier,
public dossierMetier : DossierMetier,
public informationMetier : InformationMetier,
public dialogueMessageMetier : DialogueMessageMetier,
public dialogueBdd : DialogueBdd) {
}
I am trying to troubleshoot this issue and ensure all providers are correctly declared in my app.module.ts file.
If anyone has any insight into what might be causing this problem, please let me know.