Saturday, 6 May 2017

chart.js npm module not working

i just installed chart.js through npm. I am trying to use the package to draw graphs with it.

npm install chart.js --save

after installing, i tried to import the module with :

import chart from 'Chartjs';

but its not working, i am getting errors !

i have also tried:

import chart from 'Chart';
import chart from 'chart';
import chart from 'Chart-js';

none of them is working , how do i import this library ?



via Mazino S Ukah

No comments:

Post a Comment