Ngx-datatable: Angular 10

Created on 29 Jun 2020  路  12Comments  路  Source: swimlane/ngx-datatable

Is possible to use this fantastic library with angular 10? Can you update the library to this new version? Thanks

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[ x] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

All 12 comments

image

Has anyone tried using it with Angular 10? Are there any issues?

EDIT: I just tried to upgrade the project I'm working on and yes, there are issues.

ERROR: node_modules/@ngx-translate/core/public_api.d.ts:22:53 - error TS2314: Generic type 'ModuleWithProviders<T>' requires 1 type argument(s).

22     static forRoot(config?: TranslateModuleConfig): ModuleWithProviders;
                                                       ~~~~~~~~~~~~~~~~~~~
node_modules/@ngx-translate/core/public_api.d.ts:26:54 - error TS2314: Generic type 'ModuleWithProviders<T>' requires 1 type argument(s).

26     static forChild(config?: TranslateModuleConfig): ModuleWithProviders;
                                                        ~~~~~~~~~~~~~~~~~~~
node_modules/@swimlane/ngx-datatable/lib/ngx-datatable.module.d.ts:7:57 - error TS2314: Generic type 'ModuleWithProviders<T>' requires 1 type argument(s).

7     static forRoot(configuration: INgxDatatableConfig): ModuleWithProviders;
                                                          ~~~~~~~~~~~~~~~~~~~

An unhandled exception occurred: node_modules/@ngx-translate/core/public_api.d.ts:22:53 - error TS2314: Generic type 'ModuleWithProviders<T>' requires 1 type argument(s).

22     static forRoot(config?: TranslateModuleConfig): ModuleWithProviders;
                                                       ~~~~~~~~~~~~~~~~~~~
node_modules/@ngx-translate/core/public_api.d.ts:26:54 - error TS2314: Generic type 'ModuleWithProviders<T>' requires 1 type argument(s).

26     static forChild(config?: TranslateModuleConfig): ModuleWithProviders;
                                                        ~~~~~~~~~~~~~~~~~~~
node_modules/@swimlane/ngx-datatable/lib/ngx-datatable.module.d.ts:7:57 - error TS2314: Generic type 'ModuleWithProviders<T>' requires 1 type argument(s).

7     static forRoot(configuration: INgxDatatableConfig): ModuleWithProviders;
                                                          ~~~~~~~~~~~~~~~~~~~

I've tried to use it with Angular 10 (recently upgraded the Angular from version 4 to 10) as well, although it will generate the warning below:

[WARNING] npm WARN @swimlane/[email protected] requires a peer of @angular/common@~9.1.0 but none is installed. You must install peer dependencies yourself.
[WARNING] npm WARN @swimlane/[email protected] requires a peer of @angular/core@~9.1.0 but none is installed. You must install peer dependencies yourself.
[WARNING] npm WARN @swimlane/[email protected] requires a peer of @angular/platform-browser@~9.1.0 but none is installed. You must install peer dependencies yourself.
[WARNING] npm WARN @swimlane/[email protected] requires a peer of rxjs@~6.5.5 but none is installed. You must install peer dependencies yourself.
[WARNING] npm WARN @swimlane/[email protected] requires a peer of tslib@^1.10.0 but none is installed. You must install peer dependencies yourself.

But so far I have yet to encounter any issues (Probably my table is too simple?).

My table is similar to the link below:
https://stackblitz.com/edit/angular-ivy-6z79qy

any change to get the references PR merged?

Hi It would be very helpful for me and my project if this can be updated to Angular 10. With such a great options my work would be very easy.

This is still not fixed?

same problem :(

Update @ngx-translate/core lib to latest version i.,e 13.0.0 can help you to fix this issue.

Also Update @ngx-translate/http-loader to 6.0.0 if exists in your project.

the following worked for me:

npm uninstall @ngx-translate/core
npm uninstall @ngx-translate/http-loader

and

npm i @ngx-translate/core
npm i @ngx-translate/http-loader

Hasn't anybody tried v18.0.0 yet?

@KiranShakya v18 is working fine with Angular 10

Version 18.0.0 provides support for ng10.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JanStock picture JanStock  路  3Comments

devendraYebhi picture devendraYebhi  路  3Comments

eddy-geek picture eddy-geek  路  3Comments

iget-esoares picture iget-esoares  路  3Comments

lautarobock picture lautarobock  路  3Comments