Renderer error with angular 9
See original GitHub issueAfter 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:
- Created 4 years ago
- Reactions:35
- Comments:35
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/kolkov/ngx-gallery try this full compatible Angular 8, 9 version please.
dear kolkov, thanks for sharing this , could you please suggest what is to be changed if we want to keep existing library only