title: Angular2 "No provider for t!" and Uncaught (in promise): Error: DI Error
body: <p>I've build a app in Angular 2, and have encountered a issue.
  I have used angular CLI to create my application, I have created my components and services using Angular CLI and I use "<strong>ng serve</strong>" to run the application locally and everything works fine. In order to create a build for PROD I'm using the command "<strong>ng build --Prod --base-href ./ --aot</strong>", it creates a DIST folder and hosting the folder in IIS opens the application fine. When I check in the code to TFS there is a event which automatically creates DIST folder using jenkins and pushes the build to my server. Now if I browse the application for server it throws the following errors "<strong>No provider for t!</strong>" and Error: DI Error.   I don't know what I'm doing wrong here. <br/></p>
  
  <p>Below are the screenshots of the error</p>
  
  <p><a href="https://i.stack.imgur.com/4goYO.png" rel="noreferrer"><img src="https://i.stack.imgur.com/4goYO.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/QDVsl.png" rel="noreferrer"><img src="https://i.stack.imgur.com/QDVsl.png" alt="enter image description here"></a></p>
  
  <p><br/>
  Any help is much appreciated.<br/></p>