Hello,
When I'm using a simple table, I get the following error.
ERROR
Error
: Uncaught (in promise):
NullInjectorError
:
StaticInjectorError
(AppModule)[TableDirective ->
ColumnResizingService
]:
StaticInjectorError
(Platform: core)[TableDirective ->
ColumnResizingService
]:
NullInjectorError
: No provider
for
ColumnResizingService!
It seems that there is a TableDirective from kendo where its selector is table tag, and this directive requires ColunResizingService which can not be injected for some reason.
First of all, why kendo team wrote a directive that catches any table? That doesn't sound a good practice to me.
Second, how can I fix this issue? I want a simple table without any process on that.
Best regards,
Mojtaba
7 Answers, 1 is accepted
Hi Mojtaba,
Thank you for the provided error and details.
We are currently unaware of such issue. That is why I tried to reproduce it in a StackBlitz example where I use a Grid and a regular HTML table next to each other:
https://stackblitz.com/edit/angular-shranj?file=app/app.component.ts
but the functionality is as expected and both elements are rendered without errors.
What I can suggest is to make sure that the latest Kendo Ui for Angular Grid package v 4.7.1 is used:
https://www.telerik.com/kendo-angular-ui/components/grid/changelog/
In general we recommend using the latest version of the Amgular framework and the Kendo UI for Angular components. That ensures that you are able to benefit from the most recent bug fixes and newest features and enhancements. Please remove the existing node_modules folder and any existing package-lock.json file and then reinstall the latest versions.
I hope this helps. Please provide any further relevant details in case the issue persists. Thank you in advance.
Regards,
Svetlin
Progress Telerik
Our thoughts here at Progress are with those affected by the outbreak.
Hi Svetlin,
Thank you for the reply.
I will update the packages and see if the problem still exists.
Regards,
Mojtaba
Hi Mojtaba,
Sure, take your time. Please let us know in case the issue persists.
Regards,
Svetlin
Progress Telerik
Our thoughts here at Progress are with those affected by the outbreak.
Hi Svetlin,
Sorry for delayed response, as I had some inconsistencies with updating to the latest version of Kendo packages.
Now, I have the latest version and I still get the error. See the image attached here.
Best regards,
Mojtaba
Hi Mojtaba,
We will check if we can have TableDirective loaded on demand, bu my guess is not because of Angular.
Regarding the error it is good also to update all system dependencies like @angular , core-js, zone.js, rxjs. Like in this stackblitz sample in section Dependencies.
Regards,
Ivan
Progress Telerik
Our thoughts here at Progress are with those affected by the outbreak.
Hi Ivan,
Thank you for the reply.
I still can not understand what you mean when you say "if we can have TableDirective loaded on demand"! Based on my knowledge of Angular, directives select the elements based of their selectors. That said, since the selector of kendo TableDirective is 'table', it will grab any table element. Maybe you should have had a narrower selector like '[KendoTable]'.
By the way, I am almost using the latest version of those common packages. I forked your StackBlitz and pasted my all my dependencies there, but it stopped working for some reason; you can have a look. https://stackblitz.com/edit/angular-shranj-qxk8yr
Regards,
Mojtaba
Hello Mojtaba,
Sorry for misunderstood I meant to have split up and to load only those modules that are needed, we have such feature requests.
Regarding not working stackblitz sample it is about core-js@3 package, we are bond to core-js@2 for now. Please refer to this stackblizt sample, from which you can copy packages versions.
Regards,
Ivan
Progress Telerik
Our thoughts here at Progress are with those affected by the outbreak.