tsur / canvasjs

39 stars 40 forks source link

use it in Angular error #17

Open rqx110 opened 4 years ago

rqx110 commented 4 years ago

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';
awaistkd commented 4 years ago

I am also facing this issue. Anyone can help?

hardik2801 commented 3 years ago

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 :)