valor-software / ng2-table

Simple table extension with sorting, filtering, paging... for Angular2 apps
http://valor-software.github.io/ng2-table/
MIT License
553 stars 336 forks source link

Not compiling in anglar 9 Ivy renderer #619

Open sujithmathewthomas opened 4 years ago

sujithmathewthomas commented 4 years ago

Following error is being thrown after migrating to angular 9 ERROR in Debug Failure. False expression.

ERROR in node_modules/ng2-table/components/table/ng-table-filtering.directive.d.ts:1:36 - error TS2724: Module '"../../../@angular/core/core"' has no exported member 'Renderer'. Did you mean 'Renderer2'?

1 import { EventEmitter, ElementRef, Renderer } from '@angular/core';
                                     ~~~~~~~~

  node_modules/@angular/core/core.d.ts:5761:31
    5761 export declare abstract class Renderer2 {
                                       ~~~~~~~~~
    'Renderer2' is declared here.
ironcdrk commented 4 years ago

I had the same problem. I have changed the import for Renderer2, but still not working

suhailkc commented 4 years ago

Is there any plan to update?

PrashantChavanD commented 4 years ago

I had the same problem.

nbadiganti commented 4 years ago

ng2-table is not compatible with angular 9 or later versions.

ERROR in node_modules/ng2-table/components/table/ng-table-filtering.directive.d.ts:10:48 - error TS2304: Cannot find name 'Renderer'. constructor(element: ElementRef, renderer: Renderer); Uncaught TypeError: Cannot read property 'id' of undefined at registerNgModuleType (core.js:36241) error

brocktubre commented 3 years ago

I am having this same issue and not able to use the library or build out table. I am upgrading my Angular version to the latest which of now is: 11.0.4. The following error is happening:

 Module '"../../../@angular/core/core"' has no exported member 'Renderer'. Did you mean 'Renderer2'?

1 import { EventEmitter, ElementRef, Renderer } from '@angular/core';
                                     ~~~~~~~~

  node_modules/@angular/core/core.d.ts:5914:31
    5914 export declare abstract class Renderer2 {
                                       ~~~~~~~~~
    'Renderer2' is declared here.
ashishbhave commented 2 years ago

Is there any plan to update for supporting angular 9 or above version ?