I am using kendo library in my angular project. I have my own library which I used for common components. I have a kendo grid in library in which I need to implement kendo multicheck filter where I am encountering following issue.
Uncaught Error: Invalid provider for MissingTranslationHandler. useClass cannot be undefined.
Usually it happens when:
- There's a circular dependency (might be caused by using index.ts (barrel) files).
- Class was used before it was declared. Use forwardRef in this case.
I have used forward reference as it is showing error for translator service.
forwardRef(() => TranslateService)
But this is not working in my case.
Here are my details: I have built custom component for multicheck filter to apply filter while using child component created in library. If I use it in my any of other project which are using this library. it works well. But now I have use it in component which is in library and it is commonly used in children of same module. In which case this error occurs.
<ng-template kendoGridFilterMenuTemplate let-column="column" let-filter="filter" let-filterService="filterService">
<atuin-filter-multicheck [isPrimitive]="false" [field]="column.field" [currentFilter]="filter"
[filterService]="filterService" textField="name" valueField="pkSeasonID"
[data]="validSeasonList">
</atuin-filter-multicheck>
</ng-template>