@dkoch wrote:
Hello, I am trying to use cal-heatmap in my Ionic2 TypeScript project. I ran tsd, npm install the typings and library. What would I have to include in the autogenerated
webpack.config.js
andtsconfig.json
in order to be able to use this library in my project's TypeScript component?cal-heatmap depends on d3 - which itself works with a mere
import * as d3 from 'd3';
out of the box but I am unable to properly import/instantiate anything from cal-heatmap in my code.I am fairly new to ES6-style module loading etc. so it's a bit confusing why d3 works - but cal-heatmap not when they are supposedly "packaged" the same way.
Thanks,
David
Posts: 1
Participants: 1