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.

Renderer error with angular 9

See original GitHub issue

After updating to angular V9, the Renderer class was removed, so there’s a few errors being thrown:

ERROR in node_modules/ngx-gallery/ngx-gallery-helper.service.d.ts:1:22 - error TS2724: Module '"C:/Users/Documents/repos/real-estate-client/node_modules/@angular/core/core"' has no exported member 'Renderer'. Did you mean 'Renderer2'?

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

  node_modules/@angular/core/core.d.ts:5680:31
    5680 export declare abstract class Renderer2 {
                                       ~~~~~~~~~
    'Renderer2' is declared here.
node_modules/ngx-gallery/ngx-gallery-preview.component.d.ts:1:89 - error TS2724: Module '"C:/Users/Documents/repos/real-estate-client/node_modules/@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:5680:31
    5680 export declare abstract class Renderer2 {
                                       ~~~~~~~~~
    'Renderer2' is declared here.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:35
  • Comments:35

github_iconTop GitHub Comments

23reactions
kolkovcommented, Feb 12, 2020

https://github.com/kolkov/ngx-gallery try this full compatible Angular 8, 9 version please.

2reactions
webtrainer-incommented, Feb 17, 2020

dear kolkov, thanks for sharing this , could you please suggest what is to be changed if we want to keep existing library only

Read more comments on GitHub >

github_iconTop Results From Across the Web

export 'Renderer' was not found in '@angular/core'
Renderer had been deprecated for some time now, and finally removed in Angular 9. You should migrate to Renderer2 .
Read more >
Renderer to Renderer2 migration - Angular
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 >
Renderer2 - Angular
Use a custom renderer to bypass Angular's templating and make custom UI changes that can't be expressed declaratively. For example if you need...
Read more >
Guide to update your Angular application v8.2 -> v9.1 for ...
We are deprecating support for @angular/platform-webworker , as it has been incompatible with the CLI. Running Angular's rendering architecture in a web ...
Read more >
Ahead-of-time (AOT) compilation - Angular
The browser loads executable code so it can render the application immediately, ... Detect template errors earlier, The AOT compiler detects and reports ......
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