canvasjs
canvasjs copied to clipboard
use it in Angular error
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';
I am also facing this issue. Anyone can help?
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 :)