lukasz-galka / ngx-gallery

Angular image gallery plugin
https://lukasz-galka.github.io/ngx-gallery-demo/
MIT License
436 stars 172 forks source link

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

Open bjornlarssonviggeby opened 3 years ago

bjornlarssonviggeby commented 3 years ago

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.
azizkhani commented 3 years ago

+

fmayorgad commented 3 years ago

Same here

jenish4096 commented 3 years ago

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

azizkhani commented 3 years ago

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

thank you

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

danieldanielecki commented 3 years ago

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!

mpeguero commented 3 years ago

Just install the 4.7 version.

npm install ionic-selectable@4.7.1 --save

I had same error and this solved it

rickynguyenc commented 3 years ago

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 !

ShivamShokeen commented 3 years ago

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

dhiraj66 commented 3 years ago

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

canerinali commented 2 years ago

@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.