title: Why Angular Application throws error after Production Build?
body: <p>I have an application whose development is complete. Now when I run the command ng build everything works smooth &amp; fine. But when I run this command </p>
  
  <pre><code>ng build --prod --base-href /Incrency/
  </code></pre>
  
  <p>It shows the login page but when I login in it throws the following error.</p>
  
  <pre><code>ERROR Error: Uncaught (in promise): Error: No component factory found for t. 
  Did you add it to @NgModule.entryComponents?
  Error: No component factory found for t. Did you add it to @NgModule.entryComponents?
  </code></pre>
  
  <p>I am using Angular CLI : 7.3.2, Rxjs : 6.3.3 &amp; Angular Core : 7.0.6</p>