OneSignal-Ionic-Sample icon indicating copy to clipboard operation
OneSignal-Ionic-Sample copied to clipboard

has no exported member 'Renderer'. Did you mean 'Renderer2'

Open kenibarwick opened this issue 5 years ago • 4 comments

Module '"../../../../../OneSignal-Ionic-Example/node_modules/@angular/core/core"' has no exported member 'Renderer'. Did you mean 'Renderer2'?

Renderer has been deprecated since v4 and is removed in v9

My Angular is;

Angular CLI: 7.3.9 Node: 12.14.1 OS: win32 x64 Angular: 9.0.1 ... common, compiler, compiler-cli, core, forms ... platform-browser, platform-browser-dynamic

Package Version

@angular-devkit/architect 0.13.9 (cli-only) @angular-devkit/build-optimizer 0.0.35 @angular-devkit/core 7.3.9 (cli-only) @angular-devkit/schematics 7.3.9 (cli-only) @angular/http 7.2.16 @schematics/angular 7.3.9 (cli-only) @schematics/update 0.13.9 (cli-only) rxjs 6.5.4 typescript 3.7.5 webpack 3.12.0

$ ionic info

Ionic:

Ionic CLI : 6.1.0 (C:\Users\KeniBarwick\AppData\Roaming\npm\node_modules@ionic\cli) Ionic Framework : ionic-angular 3.9.9 @ionic/app-scripts : 3.2.4

Cordova:

Cordova CLI : 9.0.0 ([email protected]) Cordova Platforms : android 6.4.0 Cordova Plugins : no whitelisted plugins (7 plugins total)

Utility:

cordova-res : not installed native-run : 0.2.9

System:

Android SDK Tools : 26.1.1 (C:\Users\KeniBarwick\AppData\Local\Android\Sdk) NodeJS : v12.14.1 (C:\Program Files\nodejs\node.exe) npm : 6.13.4 OS : Windows 10

kenibarwick avatar Feb 14 '20 16:02 kenibarwick

Did you find any solution for this?

mryerro avatar Mar 26 '20 12:03 mryerro

Hey Team, Im using Nativescript version 8.2.1 supporting only Renderer. I want to migrate to Angular 9. getting below issue

node_modules/@nativescript/angular/router/ns-router-link-active.d.ts:1:73 - error TS2724: Module '"../../../@angular/core/core"' has no exported member 'Renderer'. Did you mean 'Renderer2'?

1 import { AfterContentInit, ElementRef, OnChanges, OnDestroy, QueryList, Renderer } from "@angular/core";


node_modules/@angular/core/core.d.ts:5752:31
5752 export declare abstract class Renderer2 {

'Renderer2' is declared here.

NidheeshMv avatar Apr 22 '20 06:04 NidheeshMv

Check this post https://github.com/angular/components/issues/18592 shows that someone managed to fix the problem by updating a dependency

JhonH3avy avatar Jun 14 '20 00:06 JhonH3avy

Check this post https://github.com/angular/components/issues/18592 shows that someone managed to fix the problem by updating a dependency

it's displayed empty..

poovseka avatar Feb 27 '21 17:02 poovseka