I cannot wrap my head around how i can import d3js library in a ionic typescript projet. I installed the library using :
npm install d3 --save-dev
The library is in node_modules/d3. In my page modules, I try to import using every possible path, for example :
import * as d3 from 'd3/d3'
import * as d3 from '../../../node_modules/d3/d3'
I always get the error:
Error TS2307: Cannot find module 'd3/d3'.
or
Error TS2307: Cannot find module '../../../node_modules/d3/d3'`.
Any hint to help me ?
Angular version 2.0.0-rc.1
Ionic : 2.0.0-beta.9
Thanks