ramyothman / ngx-grid-stack

2 stars 10 forks source link

Build errors (Renderer) after upgrading to Angular 10 #7

Open contactipraju opened 4 years ago

contactipraju commented 4 years ago

Hey Ramy,

I've recently upgraded Angular in my project to the latest version (10) and got the following build error. Let me know if you have a fix for this. Thanks in advance.

Prasad


ERROR in node_modules/ngx-grid-stack/lib/grid-stack-item/grid-stack-item.component.d.ts:1:44 - error TS2724: Module '"../../../@angular/core/core"' has no exported member 'Renderer'. Did you mean 'Renderer2'?

1 import { OnInit, ComponentRef, ElementRef, Renderer, EventEmitter, OnDestroy, AfterViewInit, ViewContainerRef } from '@angular/core';


  node_modules/@angular/core/core.d.ts:5764:31
    5764 export declare abstract class Renderer2 {
'Renderer2' is declared here.

node_modules/ngx-grid-stack/lib/grid-stack/grid-stack.component.d.ts:1:33 - error TS2724: Module '"../../../@angular/core/core"' has no exported member 'Renderer'. Did you mean 'Renderer2'?

1 import { QueryList, ElementRef, Renderer, AfterContentInit } from '@angular/core';


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

You may need to upgrade the library to use Renderer2. Here is the migration map: https://angular.io/guide/migration-renderer

contactipraju commented 3 years ago

@ramyothman Can you update me on if you have plans to upgrade this library to work on latest version of Angular (9 if not on 10). Thanks

contactipraju commented 3 years ago

@ramyothman you can review and merge the PR (Upgrade to Angular 9) issued by Uday if everything is good (?): https://github.com/ramyothman/ngx-grid-stack/pull/5