Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70429

Use of third-party JS libary with typings in Ionic2 project

$
0
0

@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 and tsconfig.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

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>