question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:16
  • Comments:10

github_iconTop GitHub Comments

6reactions
azizkhanicommented, Aug 11, 2020

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

thank you

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

1reaction
canerinalicommented, Oct 9, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

It's giving error in angular10 as showing 'Renderer2' is ...
It's giving error in angular10 as showing 'Renderer2' is declared here. ... It's need Renderer2 instead of Renderer in angular 10.
Read more >
angular - Service: No provider for Renderer2
However, I run into this error: Error: no provider for Renderer2! The service belongs to a CoreModule whose only import is CommonModule from...
Read more >
Renderer2
Use to store arbitrary developer-defined data on a renderer instance, as an object containing key-value pairs. This is useful for renderers that delegate...
Read more >
Template type checking
Troubleshooting template errorslink · When a library's typings are wrong or incomplete (for example, missing null | undefined if the library was not...
Read more >
Renderer to Renderer2 migration
The deprecated Renderer class has been removed in version 9 of Angular, so it's necessary to migrate to a supported API. Using Renderer2...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found