ngx-gallery icon indicating copy to clipboard operation
ngx-gallery copied to clipboard

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

Open bjornlarssonviggeby opened this issue 4 years ago • 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.

bjornlarssonviggeby avatar Jul 11 '20 05:07 bjornlarssonviggeby

azizkhani avatar Jul 23 '20 13:07 azizkhani

Same here

fmayorgad avatar Jul 31 '20 13:07 fmayorgad

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

jenish4096 avatar Aug 11 '20 05:08 jenish4096

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

thank you

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

azizkhani avatar Aug 11 '20 09:08 azizkhani

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!

danieldanielecki avatar Sep 04 '20 15:09 danieldanielecki

Just install the 4.7 version.

npm install [email protected] --save

I had same error and this solved it

mpeguero avatar Mar 19 '21 18:03 mpeguero

Just install the 4.7 version.

npm install [email protected] --save

I had same error and this solved it

Thank you so much, it works !

rickynguyenc avatar Mar 25 '21 09:03 rickynguyenc

Still getting the same error after installing npm install [email protected] --save or npm install ngx-gallery-9 --save

ShivamShokeen avatar Mar 29 '21 05:03 ShivamShokeen

I am using Angular 9 and facing the same error even after installing npm install [email protected] --save or npm install ngx-gallery-9 --save Please Help

dhiraj66 avatar Jun 18 '21 08:06 dhiraj66

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

canerinali avatar Oct 09 '21 11:10 canerinali