canvasjs icon indicating copy to clipboard operation
canvasjs copied to clipboard

use it in Angular error

Open rqx110 opened this issue 6 years ago • 2 comments

erro info :

ERROR in ./src/app/main/dashboard/dashboard.component.ts 62:24-32
"export 'default' (imported as 'CanvasJS') was not found in 'canvasjs'
ERROR in ./node_modules/canvasjs/src/charts/index.js 1:7
Module parse failed: Unexpected token (1:7)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> export SplineChart from '../charts/spline';
| export ColumnChart from '../charts/column';
| export StackedColumnChart from '../charts/stacked_column';

rqx110 avatar Dec 27 '19 05:12 rqx110

I am also facing this issue. Anyone can help?

awaistkd avatar Jun 14 '20 11:06 awaistkd

There is a problem with the exported modules. Here is a link to a solution: https://github.com/tsur/canvasjs/issues/10#issuecomment-360332125

Hope this helps :)

hardik2801 avatar Sep 23 '20 13:09 hardik2801