Trying to incorporate the d3.js library into a MEAN application using angular2.
Here are the steps I've taken:
npm install d3
tsd install d3
In mypage.ts file (where I intend to show the d3.js graph)
// <reference path="../../../typings/d3/d3.d.ts" />
import * as d3 from "d3/d3";
Encountering this error message:
error TS2307: Cannot find module 'd3/d3'.
The structure of my typings folder is as follows:
typings
- d3
d3.d.ts
- index.d.ts
The content of index.d.ts is:
/// <reference path="modules/d3/d3.d.ts" />