Upon updating my project to Angular9/Clarity3 from Angular8/Clarity2, I encountered some issues while navigating the app. I was able to fix some problems, but now I'm facing a NullInjectorError:
ERROR Error: Uncaught (in promise): NullInjectorError: R3InjectorError(AppModule)[TreeFocusManagerService -> TreeFocusManagerService -> TreeFocusManagerService]:
NullInjectorError: No provider for TreeFocusManagerService!
Error: NullInjectorError: No provider for TreeFocusManagerService!
at NullInjector.push../node_modules/@angular/core/__ivy_ngcc__/fesm5/core.js.NullInjector.get (core.js:937) [angular]
at R3Injector.push../node_modules/@angular/core/__ivy_ngcc__/fesm5/core.js.R3Injector.get (core.js:11565) [angular]
...
The related template code is:
<clr-wizard-page #page1 [clrWizardPageNextDisabled]="pageOneDisabled">
<ng-template clrPageTitle>Scelta asset</ng-template>
<clr-tree-node *ngIf="assets">
Asset
<ng-template [clrIfExpanded]="true">
<clr-tree-node *ngFor="let asset of assets" [(clrSelected)]="asset.selected">
{{asset.description}}
</clr-tree-node>
</ng-template>
</clr-tree-node>
</clr-wizard-page>
In addition, I'm also encountering another problem in the TS file:
this.wizard.navService.goTo(this.wizard.navService.pageCollection.firstPage);
Here is the logged error:
ERROR TypeError: Cannot read property 'navService' of undefined
at FundTypeModelWizardComponent.push../src/app/modules/flows/components/fund-type-model/fund-type-model-wizard/fund-type-model-wizard.component.ts.FundTypeModelWizardComponent.initComponentsState (fund-type-model-wizard.component.ts:144)
...
At this point, I'm unsure if these two issues are related. Any suggestions on how to proceed would be greatly appreciated! Thank you.