ng2-table icon indicating copy to clipboard operation
ng2-table copied to clipboard

Not compiling in anglar 9 Ivy renderer

Open sujithmathewthomas opened this issue 4 years ago • 6 comments

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.

sujithmathewthomas avatar Apr 09 '20 10:04 sujithmathewthomas

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

ironcdrk avatar Jun 12 '20 00:06 ironcdrk

Is there any plan to update?

suhailkc avatar Jun 18 '20 05:06 suhailkc

I had the same problem.

PrashantChavanD avatar Aug 13 '20 02:08 PrashantChavanD

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

nbadiganti avatar Aug 13 '20 11:08 nbadiganti

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.

brocktubre avatar Dec 19 '20 19:12 brocktubre

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

ashishbhave avatar Dec 14 '21 05:12 ashishbhave