I'm using typescript with aurelia/aurelia-cli. I've npm installed chart.js and added it to my aurelia.json file:
"dependencies": [
...
{
"name": "chartjs",
"path": "../node_modules/chart.js/dist",
"main": "Chart"
},
]
I've also ran typings:
typings install dt~chart.js --global --save
Now I'm trying to import it in one of my components
import * as Chart from 'chartjs'
But I get the error:
Cannot find module 'chartjs'.
I've also tried:
... from 'chart'
... from 'Chart'
... from 'Chart.js'
... from 'chartjs'
import * as chart ...
import * as chartjs ...