title: Angular Error : StaticInjectorError (Platform: core)[e -> t]:
body: <p>As I am build the APK with <code>--prod</code> I am getting the error below</p>
  
  <pre><code>    ERROR Error: StaticInjectorError[e -&gt; t]: 
    StaticInjectorError(Platform: core)[e -&gt; t]: 
      NullInjectorError: No provider for t!
      at e.get (core.js.pre-build-optimizer.js:8894)
      at core.js.pre-build-optimizer.js:9139
      at e (core.js.pre-build-optimizer.js:9083)
      at e.get (core.js.pre-build-optimizer.js:8980)
      at core.js.pre-build-optimizer.js:9139
      at e (core.js.pre-build-optimizer.js:9083)
      at e.get (core.js.pre-build-optimizer.js:8980)
      at Ua (core.js.pre-build-optimizer.js:21119)
      at e.get (core.js.pre-build-optimizer.js:21808)
      at Ts (core.js.pre-build-optimizer.js:22179)
  </code></pre>
  
  <p>But it working fine with Ionic Cordova build android also it working with <code>ng serve</code>; but I am getting the same above error with <code>ng serve --prod"</code>.</p>
  
  <p>How can I resolve this?</p>