title: Angular Build html saying StaticInjectorError[e -> e]
body: <p>I am having problem in angular build. </p>
  
  <p>Ng server is working fine.
  But when I build my app it builds file and when I open the html it say following error.</p>
  
  <pre><code>main.aad9c1dbd7274baabb39.js:1 ERROR Error: Uncaught (in promise): Error: StaticInjectorError[e -&gt; e]: 
    StaticInjectorError(Platform: core)[e -&gt; e]: 
      NullInjectorError: No provider for e!
  Error: StaticInjectorError[e -&gt; e]: 
    StaticInjectorError(Platform: core)[e -&gt; e]: 
      NullInjectorError: No provider for e!
      at e.get (main.aad9c1dbd7274baabb39.js:1)
      at main.aad9c1dbd7274baabb39.js:1
      at e (main.aad9c1dbd7274baabb39.js:1)
      at e.get (main.aad9c1dbd7274baabb39.js:1)
      at main.aad9c1dbd7274baabb39.js:1
      at e (main.aad9c1dbd7274baabb39.js:1)
      at e.get (main.aad9c1dbd7274baabb39.js:1)
      at Bg (main.aad9c1dbd7274baabb39.js:1)
      at main.aad9c1dbd7274baabb39.js:1
      at Rg (main.aad9c1dbd7274baabb39.js:1)
      at O (polyfills.20ab2d163684112c2aba.js:1)
      at O (polyfills.20ab2d163684112c2aba.js:1)
      at polyfills.20ab2d163684112c2aba.js:1
      at e.invokeTask (polyfills.20ab2d163684112c2aba.js:1)
      at Object.onInvokeTask (main.aad9c1dbd7274baabb39.js:1)
      at e.invokeTask (polyfills.20ab2d163684112c2aba.js:1)
      at t.runTask (polyfills.20ab2d163684112c2aba.js:1)
      at v (polyfills.20ab2d163684112c2aba.js:1)
  </code></pre>