amanjain325 / angular-d3-charts

Integrate your Angular 2, Angular 4 app with d3 charts e.g. Doughnut, Pie, Single Bar chart, Multiple bar chart and Stacked bar chart
11 stars 11 forks source link

Production Build Not Working : ng build --prod #4

Closed atulgupt closed 5 years ago

atulgupt commented 5 years ago

Hello There!

I was using this library for drawing the DoNut Chart. When I am going to make the production build. I am getting the

ERROR in : Unexpected value 'DoughnutChartComponent in /Users/kiwitech/quardant-vms-frontend/node_modules/angular-d3-charts/bundle/doughnutChart.component.d.ts' declared by the module 'DashboardQuadrantModule in /Users/kiwitech/quardant-vms-frontend/src/app/quadrant/dashboard/dashboard.module.ts'. Please add a @Pipe/@Directive/@Component annotation.

I hope this issue will be resolved in the future.

Thanks,

rishi-mobi commented 5 years ago

Hello There!

I was using this library for drawing the DoNut Chart. When I am going to make the production build. I am getting the

ERROR in : Unexpected value 'DoughnutChartComponent in /Users/kiwitech/quardant-vms-frontend/node_modules/angular-d3-charts/bundle/doughnutChart.component.d.ts' declared by the module 'DashboardQuadrantModule in /Users/kiwitech/quardant-vms-frontend/src/app/quadrant/dashboard/dashboard.module.ts'. Please add a @Pipe/@Directive/@component annotation.

I hope this issue will be resolved in the future.

Thanks,

How did you solve this issue ?

atulgupt commented 5 years ago

Hello There! I was using this library for drawing the DoNut Chart. When I am going to make the production build. I am getting the ERROR in : Unexpected value 'DoughnutChartComponent in /Users/kiwitech/quardant-vms-frontend/node_modules/angular-d3-charts/bundle/doughnutChart.component.d.ts' declared by the module 'DashboardQuadrantModule in /Users/kiwitech/quardant-vms-frontend/src/app/quadrant/dashboard/dashboard.module.ts'. Please add a @Pipe/@Directive/@component annotation. I hope this issue will be resolved in the future. Thanks,

How did you solve this issue ?

I wasn't able to resolve it, So I switched to another library ng-circle-progress

https://www.npmjs.com/package/ng-circle-progress

Thanks,