title: PrimeNG (PrimeUI) + Webpack + angular2 + typescript
body: <p>Is here anybody who know how to make PrimeNG under Webpack working?</p>
  
  <p>We have project on <a href="https://github.com/AngularClass/angular2-webpack-starter" rel="nofollow noreferrer">angular2-webpack-starter</a> but the PrimeNG have todo just with System.js loader</p>
  
  <p>I get the point when the PrimeNG is loading fine, but i can get success with PrimeUI library... let say for example file <code>primeng/components/togglebutton/togglebutton.ts</code></p>
  
  <blockquote>
    <p>error TS2503: Cannot find namespace 'PrimeUI'.</p>
  </blockquote>
  
  <p>I even <a href="https://stackoverflow.com/questions/27417107/how-use-an-external-non-typescript-library-from-typescript-without-d-ts">tried magic formula</a> with declare in <code>...togglebutton.ts</code></p>
  
  <pre><code>declare var PrimeUI:any;
  </code></pre>
  
  <p>and in my <code>webpack.config</code></p>
  
  <pre><code>plugins: [ 
    new webpack.ProvidePlugin({
      PrimeUI: 'primeui',
    })
    .
    .
   ],
  </code></pre>
  
  <p>but if I try something like</p>
  
  <pre><code>import * as PrimeUI from 'primeui';
  </code></pre>
  
  <blockquote>
    <p>error TS2307: Cannot find module 'primeui'.</p>
  </blockquote>
  
  <p>I just remind I did <code>npm install primeui</code> and the <code>primeui</code> is present in <code>node_modules</code> with all dependencies </p>