greetclock / angular-gauge-chart

Angular Gauge Chart
https://recogizer.github.io/gauge-chart/examples/samples/
MIT License
61 stars 40 forks source link

angular ng build --prod failure #16

Closed umahesh98 closed 5 years ago

umahesh98 commented 5 years ago

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.

shashi97 commented 5 years ago

Any luck @umahesh98 ?

shashi97 commented 5 years ago

import { GaugeChartModule } from 'angular-gauge-chart'; Module instead of GaugeChartComponent.

mmaltsev commented 5 years ago

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!