title: Angular 2 - Import html2canvas
body: <p>I have installed <code>html2canvas</code> on my <code>angular 2</code> project using <code>npm install html2canvas --save</code>. If I now go to any file and write <code>import * as html2canvas from 'html2canvas'</code> it gives the error: </p>
  
  <pre><code>Cannot find module 'html2canvas'
  </code></pre>
  
  <p>My package file looks like this:</p>
  
  <pre><code>{
    ...
    "scripts": {
      ...
    },
    "dependencies": {
      ...
      "html2canvas": "^0.5.0-beta4",
      ...
    },
    "devDependencies": {
      ...
    }
  }
  </code></pre>
  
  <p>The file on which I'm trying to import the <code>html2canvas</code> is:</p>
  
  <pre><code>import { Injectable } from '@angular/core';
  import * as jsPDF from 'jspdf';
  import * as html2canvas from 'html2canvas';
  
  @Injectable ()
  export class pdfGeneratorService {
  
    ...
  }
  </code></pre>