Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

244
Views
No puedo encontrar el nombre 'ChangeDetectorRef' en Angular 4

Estoy migrando una aplicación Ionic 2 a Ionic 3, con Angular 4.

 import { Component, Input, Output, OnInit, Inject, AfterViewInit, forwardRef, EventEmitter, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';

[...]

 constructor( @Inject(forwardRef(() => TimelineComponent)) private _parent: TimelineComponent, private cd: ChangeDetectorRef) { this.window = <Window>window; }

Y recibo un error: No puedo encontrar el nombre 'ChangeDetectorRef en este constructor :(

Aquí mi paquete.json:

 "dependencies": { "@angular/animations": "4.0.0", "@angular/common": "4.0.0", "@angular/compiler": "4.0.0", "@angular/compiler-cli": "4.0.0", "@angular/core": "4.0.0", "@angular/forms": "4.0.0", "@angular/http": "4.0.0", "@angular/platform-browser": "4.0.0", "@angular/platform-browser-dynamic": "4.0.0", "@angular/platform-server": "4.0.0", "@ionic-native/core": "3.4.2", "@ionic-native/splash-screen": "3.4.2", "@ionic-native/status-bar": "3.4.2", "@ionic/storage": "2.0.1", "@ngx-translate/core": "^6.0.1", "@ngx-translate/http-loader": "0.0.3", "install": "^0.8.8", "intl": "^1.2.5", "ionic-angular": "3.0.1", "ionicons": "3.0.0", "lodash": "^4.17.3", "npm": "^4.5.0", "pdfmake": "0.1.26", "rxjs": "5.1.1", "smoothscroll-polyfill": "0.3.4", "sw-toolbox": "3.4.0", "typings": "2.1.1", "zone.js": "^0.8.4" }, "devDependencies": { "@ionic/app-scripts": "1.3.0", "typescript": "~2.2.1", "gulp": "^3.9.1", "gulp-help": "^1.6.1", "gulp-inject-string": "^1.1.0", "gulp-load-plugins": "^1.4.0", "gulp-replace-task": "^0.11.0", "gulp-war": "^0.1.4", "gulp-zip": "^4.0.0"

},

Aquí mis errores en Chrome Aquí mis errores en Chrome

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Actualicé con la nueva versión y ahora funciona :)

 "dependencies": { "@angular/animations": "4.0.2", "@angular/common": "4.0.2", "@angular/compiler": "4.0.2", "@angular/compiler-cli": "4.0.2", "@angular/core": "4.0.2", "@angular/forms": "4.0.2", "@angular/http": "4.0.2", "@angular/platform-browser": "4.0.2", "@angular/platform-browser-dynamic": "4.0.2", "@angular/platform-server": "4.0.2", "@angular/tsc-wrapped": "4.1.0", "@ionic/storage": "2.0.1", "@ngx-translate/core": "^6.0.1", "@ngx-translate/http-loader": "0.0.3", "ionic-angular": "3.1.0", "install": "^0.8.8", "intl": "^1.2.5", "ionicons": "~3.0.0", "lodash": "^4.17.3", "npm": "^4.5.0", "pdfmake": "0.1.26", "rxjs": "5.1.1", "smoothscroll-polyfill": "0.3.4", "sw-toolbox": "3.4.0", "ng2-pdf-viewer": "1.0.2", "zone.js": "^0.8.5" },
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!