typescript - Angular CLI AOT build error cache? -
i have angular (2) app failing build using aot compiler. what's strange nuked component error , rebuilt ground adding 1 line @ time trace issue (the aot error useless). rebuilt error appeared, removed last thing added , reason error persisted. went far take component way basic structure provided angular cli error message persisted. idea what's happening? see below component in it's current does-nothing state throwing following error:
error in /path_removed/$$_gendir/app/dashboard-chart/dashboard-chart.component.ngfactory.ts (49,9): supplied parameters not match signature of call target.
using build command
ng serve --aot --prod
dashboard-chart.ts
import { component, oninit, onchanges, input, viewchild, elementref, viewencapsulation } '@angular/core'; @component({ selector: 'dashboard-chart', templateurl: './dashboard-chart.component.html', styleurls: ['./dashboard-chart.component.css'], encapsulation: viewencapsulation.none }) export class dashboardchartcomponent implements oninit, onchanges { @viewchild('chart') chartcontainer: elementref; @input() data: any[]; constructor() { } ngoninit() { } ngonchanges() { } }
dashboard-component.html
<div class="d3-chart" #chart></div>
Comments
Post a Comment