I am trying to set up a grid with hard coded data, but I get the following error. I am using the trial version of grid.
Any idea how to fix it ?
ERROR TypeError: $localize is not a function
at consts (\node_modules\@progress\kendo-angular-grid\fesm2020\progress-kendo-angular-grid.mjs:28430:16)
at createTView (\node_modules\@angular\core\fesm2022\core.mjs:11368:60)
at getOrCreateComponentTView (\node_modules\@angular\core\fesm2022\core.mjs:11343:28)
at addComponentLogic (\node_modules\@angular\core\fesm2022\core.mjs:12096:19)
at instantiateAllDirectives (\node_modules\@angular\core\fesm2022\core.mjs:11898:9)
at createDirectivesInstances (\node_modules\@angular\core\fesm2022\core.mjs:11306:5)
at Module.ɵɵelementStart (\node_modules\@angular\core\fesm2022\core.mjs:23045:9)
at StudiesComponent_Template (\src\app\components\studies\studies.component.html:4:1)
at executeTemplate (\node_modules\@angular\core\fesm2022\core.mjs:11268:9)
at renderView (.angular/cache/17.3.8/vite/deps/chunk-IQF64XDW.js?v=647d7f9f:7478:7) {stack: 'TypeError: $localize is not a function
at…ite/deps/chunk-IQF64XDW.js?v=647d7f9f:7478:7)', message: '$localize is not a function'}
Hi Abhishek,
Thank you very much for the error log provided.
The issue seems related to the Angular version and the following discussion/bug in Angular:
Discussion - https://github.com/telerik/kendo-angular/issues/4195
Bug - https://github.com/angular/angular-cli/issues/26350
Could you possibly try the following - https://github.com/telerik/kendo-angular/issues/4195#issuecomment-1931777040
Or build the application and use it on a server to see if there are any issues with the translation. It is a bit messy with the above-mentioned bug, and hopefully, it will be resolved soon. Feel free to give a thumbs up on the bug for more visibility.
I hope this helps. Please, let me know if I can further assist you with this case.
Regards,
Georgi
Progress Telerik