0๐
โ
I had the same issue, Add like this to the System.config.js
map: {
'ng2-charts': 'npm:ng2-charts'
}
packages: {
'ng2-charts': {
main: 'ng2-charts.js',
defaultExtension: 'js'
}
}
and then in your module,
import { ChartsModule } from 'ng2-charts/ng2-charts';
Source:stackexchange.com