title: Add PrimeNG into Angular2 app using Webpack
body: <p>I am attempting to load PrimeNG into my Webpack bundled Angular2 app.  </p>
  
  <p>First I did an npm install: </p>
  
  <pre><code>npm install primeng --save
  npm install primeui --save
  </code></pre>
  
  <p>This added the following two lines to my package.json: </p>
  
  <pre><code>+    "primeng": "^1.0.0-beta.8",
  +    "primeui": "^4.1.12",
  </code></pre>
  
  <p>Next, as shown in this <a href="https://github.com/cagataycivici/angular2-webpack-starter/commit/d0f7c6bdbdb6128660e337ff147f686215eda303#diff-f737fedb5357468044db2dbe98eb0218R118" rel="nofollow">github commit</a> from angular2-webpack-starter, I add an import to <code>venders.ts</code>:</p>
  
  <pre><code>import 'script!primeui/primeui-ng-all.min.js';
  </code></pre>
  
  <p>It seems like <code>script!</code> is some kind of special thing that my webpack doesn't know how to do.  I am getting this: </p>
  
  <pre><code>ERROR in ./src/vendor.ts
  Module not found: Error: Cannot resolve module 'script' in /SomeDir/src
   @ ./src/vendor.ts 14:0-47
  Child html-webpack-plugin for "index.html":
      chunk    {0} index.html 570 kB
           + 4 hidden modules
  webpack: bundle is now VALID.
  </code></pre>
  
  <p>I am not sure if this is problem or not.  My app still loads...</p>
  
  <p>Continuing, I add the following two imports to my AppComponent:</p>
  
  <pre><code>import {TabView} from 'primeng/primeng';
  import {TabPanel} from 'primeng/primeng';
  </code></pre>
  
  <p>This generates the following additional warnings: </p>
  
  <pre><code>webpack: bundle is now VALID.
  [default] Checking started in a separate process...
  [default] /.../node_modules/primeng/components/breadcrumb/breadcrumb.d.ts:3:24 
      Cannot find module '@angular/router'.
  [default] /.../someDir/node_modules/primeng/components/contextmenu/contextmenu.d.ts:4:24 
      Cannot find module '@angular/router'.
  [default] /.../someDir/node_modules/primeng/components/megamenu/megamenu.d.ts:4:24 
      Cannot find module '@angular/router'.
  [default] /.../someDir/node_modules/primeng/components/menu/menu.d.ts:4:24 
      Cannot find module '@angular/router'.
  [default] /.../someDir/node_modules/primeng/components/menubar/menubar.d.ts:4:24 
      Cannot find module '@angular/router'.
  [default] /.../someDir/node_modules/primeng/components/panelmenu/panelmenu.d.ts:3:24 
      Cannot find module '@angular/router'.
  [default] /.../someDir/node_modules/primeng/components/slidemenu/slidemenu.d.ts:4:24 
      Cannot find module '@angular/router'.
  [default] /.../someDir/node_modules/primeng/components/splitbutton/splitbutton.d.ts:4:24 
      Cannot find module '@angular/router'.
  [default] /.../someDir/node_modules/primeng/components/tabmenu/tabmenu.d.ts:3:24 
      Cannot find module '@angular/router'.
  [default] /.../someDir/node_modules/primeng/components/tieredmenu/tieredmenu.d.ts:5:24 
      Cannot find module '@angular/router'.
  </code></pre>
  
  <p>Questions:</p>
  
  <ul>
  <li>How can I add PrimeNg to an Angular2 project using Webpack?</li>
  <li>Why isn't my <code>import 'script!'...</code> working? </li>
  <li>Why can't primeng find angular?</li>
  </ul>