title: Angular5 application failing after production build with ng build --prod
body: <p>I'm at a total loss as to how to debug this.</p>
  
  <p>I've built an application with Angular 5 and it is running great during development with <code>ng serve --aot --progress=false --proxy-config proxy.conf.json</code></p>
  
  <p>Now I am ready to deploy to production. I'm running <code>ng build --prod --sm=false --aot --output-path=dist/client</code> and the build is successful.</p>
  
  <p>I copy the client side files to the server and when I run in a browser I receive the following error.</p>
  
  <p>FireFox:</p>
  
  <pre><code>TypeError: t[r] is undefined          main.1eda0feb0dddc7c4747b.bundle.js:1:791705
  </code></pre>
  
  <p>Chrome</p>
  
  <pre><code>main.d8cd32d2ec09f8365918.bundle.js:1 Uncaught TypeError: Cannot read property 'call' of undefined
  at n (main.d8cd32d2ec09f8365918.bundle.js:1)
  at Object.t.exports (main.d8cd32d2ec09f8365918.bundle.js:1)
  at n (main.d8cd32d2ec09f8365918.bundle.js:1)
  at Object.t.exports (main.d8cd32d2ec09f8365918.bundle.js:1)
  at n (main.d8cd32d2ec09f8365918.bundle.js:1)
  at Object.t.exports (main.d8cd32d2ec09f8365918.bundle.js:1)
  at n (main.d8cd32d2ec09f8365918.bundle.js:1)
  at Object.t.exports (main.d8cd32d2ec09f8365918.bundle.js:1)
  at n (main.d8cd32d2ec09f8365918.bundle.js:1)
  at Object.&lt;anonymous&gt; (main.d8cd32d2ec09f8365918.bundle.js:1)
  </code></pre>
  
  <p>and if I go to the specific portion of the main bundle:</p>
  
  <pre><code>...return t[r].call(i.exports,i,i.exports,n),i.l...
  </code></pre>
  
  <p>How in the world do I debug this and figure out what is causing the problem?</p>