title: Cannot find name 'require' after upgrading to Angular4
body: <p>I want to use Chart.js within my Angular project.
  In previous Angular2 versions, I have been doing this well by using a 'chart.loader.ts' which has:</p>
  
  <pre><code>export const { Chart } = require('chart.js');
  </code></pre>
  
  <p>Then in the component code I just</p>
  
  <pre><code>import { Chart } from './chart.loader';
  </code></pre>
  
  <p>But after upgrading to cli 1.0.0 and Angular 4, I get the error: "Cannot find name 'require'".</p>
  
  <p>To reproduce the error:</p>
  
  <pre><code>ng new newapp
  cd newapp
  npm install chart.js --save
  echo "export const { Chart } = require('chart.js');" &gt;&gt; src/app/chart.loader.ts
  ng serve
  </code></pre>
  
  <p>In my 'tsconfig.json', I have</p>
  
  <pre><code>"typeRoots": [
    "node_modules/@types"
  ],
  </code></pre>
  
  <p>And in 'node_modules/@types/node/index.d.ts' there is:</p>
  
  <pre><code>declare var require: NodeRequire;
  </code></pre>
  
  <p>So I'm confused.</p>
  
  <p>BTW, I constantly encounter the warning: </p>
  
  <pre><code>[tslint] The selector of the component "OverviewComponent" should have prefix "app"(component-selector)
  </code></pre>
  
  <p>Though I have set the "prefix": "" in my '.angular-cli.json'. Could it because changing from 'angular-cli.json' to '.angular-cli.json' the cause?</p>