lukasz-galka/ngx-gallery

It's giving error in angular10 as showing 'Renderer2' is declared here.

bjornlarssonviggeby opened this issue · 10 comments

It's need Renderer2 instead of Renderer in angular 10. Kindly update it.

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

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

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

Same here

facing the same issue, anyone has a solution to this issue then let me know.
thank you

facing the same issue, anyone has a solution to this issue then let me know.

thank you

https://github.com/SaeedSpate/ngx-gallery-9

facing the same issue, anyone has a solution to this issue then let me know.
thank you

https://github.com/SaeedSpate/ngx-gallery-9

Worked out, thanks!

Just install the 4.7 version.

npm install ionic-selectable@4.7.1 --save

I had same error and this solved it

Just install the 4.7 version.

npm install ionic-selectable@4.7.1 --save

I had same error and this solved it

Thank you so much, it works !

Still getting the same error after installing npm install ionic-selectable@4.7.1 --save or npm install ngx-gallery-9 --save

I am using Angular 9 and facing the same error even after installing npm install ionic-selectable@4.7.1 --save or npm install ngx-gallery-9 --save
Please Help

@dhiraj66 You need to delete the existing packages by saying npm uninstall ngx-gallery and then install this package by saying npm install ngx-gallery-9 --save and use it as 'ngx-gallery-9' in your module.