Closed umahesh98 closed 5 years ago
Any luck @umahesh98 ?
import { GaugeChartModule } from 'angular-gauge-chart'; Module instead of GaugeChartComponent.
Just published an updated version of the library with the fix. You can get it with npm i angular-gauge-chart@0.5.3
.
@shashi97 Thanks a lot for figuring that out!
ERROR in : Type GaugeChartComponent in C:/Users/Documents/iqm/sprint-14-Dec/app/node_modules/angular-gauge-chart/angular-gauge-chart.d.ts is part of the declarations of 2 modules: MainModule in C:/Users/Documents/iqm/sprint-14-Dec/app/src/app/main/main.module.ts and GaugeChartModule in C:/Users/Documents/iqm/sprint-14-Dec/app/node_modules/angular-gauge-chart/angular-gauge-chart.d.ts! Please consider moving GaugeChartComponent in C:/Users/Documents/iqm/sprint-14-Dec/app/node_modules/angular-gauge-chart/angular-gauge-chart.d.ts to a higher module that imports MainModule in C:/Users/Documents/iqm/sprint-14-Dec/app/src/app/main/main.module.ts and GaugeChartModule in C:/Users/Documents/iqm/sprint-14-Dec/app/node_modules/angular-gauge-chart/angular-gauge-chart.d.ts. You can also create a new NgModule that exports and includes GaugeChartComponent in C:/Users/Documents/iqm/sprint-14-Dec/app/node_modules/angular-gauge-chart/angular-gauge-chart.d.ts then import that NgModule in MainModule in C:/Users/Documents/iqm/sprint-14-Dec/app/src/app/main/main.module.ts and GaugeChartModule in C:/Users/Documents/iqm/sprint-14-Dec/app/node_modules/angular-gauge-chart/angular-gauge-chart.d.ts.