title: Uncaught (in promise): Error: StaticInjectorError(AppModule)[options]
body: <p>I have a strange error. Usually (I did my googling), in this case of errors Angular specifies in square brackets which exactly module/service/provider/etc caused the problem. However here, it says only <code>options</code>.</p>
  
  <p>I tried adding <code>HttpClientModule, HttpModule, Options</code> to providers/imports - no success.</p>
  
  <p>Tried to follow this debugging guide <a href="https://stackoverflow.com/questions/23480591/debugging-unknown-provider-in-minified-angular-javascript">Debugging Unknown provider in minified angular javascript</a> but also it brought me to nothing (no <code>invoke</code> on the call stack, just invokes associated with <code>Zone</code>)</p>
  
  <p>my <code>app.components.ts</code> looks like this:</p>
  
  <pre><code>import { Component } from '@angular/core';
  
  @Component({
    selector: 'app-root',
    template: `&lt;router-outlet&gt;&lt;/router-outlet&gt;`,
  })
  export class AppComponent {
    constructor() {}
  }
  </code></pre>
  
  <p>Mozilla console traceback:</p>
  
  <pre><code>Error: [object Object]
  Stack trace:
  resolvePromise@webpack-internal:///../../../../zone.js/dist/zone.js:783:31
  resolvePromise@webpack-internal:///../../../../zone.js/dist/zone.js:754:17
  scheduleResolveOrReject/&lt;@webpack-internal:///../../../../zone.js/dist/zone.js:831:17
  ZoneDelegate.prototype.invokeTask@webpack-internal:///../../../../zone.js/dist/zone.js:424:17
  onInvokeTask@webpack-internal:///../../../core/esm5/core.js:4952:24
  ZoneDelegate.prototype.invokeTask@webpack-internal:///../../../../zone.js/dist/zone.js:423:17
  Zone.prototype.runTask@webpack-internal:///../../../../zone.js/dist/zone.js:191:28
  drainMicroTaskQueue@webpack-internal:///../../../../zone.js/dist/zone.js:595:25
  ZoneTask.invokeTask@webpack-internal:///../../../../zone.js/dist/zone.js:502:21
  invokeTask@webpack-internal:///../../../../zone.js/dist/zone.js:1370:9
  globalZoneAwareCallback@webpack-internal:///../../../../zone.js/dist/zone.js:1388:17
  </code></pre>
  
  <p>Mozilla console detailed traceback (when I click on the dropdown button):</p>
  
  <pre><code>Error
  ​
  columnNumber: 31
  ​
  fileName: "http://localhost:4100/polyfills.bundle.js line 733 &gt; eval"
  ​
  lineNumber: 783
  ​
  message: "Uncaught (in promise): Error: StaticInjectorError(AppModule)[options]: \n  StaticInjectorError(Platform: core)[options]: \n    NullInjectorError: No provider for options!\n_NullInjector.prototype.get@webpack-internal:///../../../core/esm5/core.js:1218:19\nresolveToken@webpack-internal:///../../../core/esm5/core.js:1516:17\ntryResolveToken@webpack-internal:///../../../core/esm5/core.js:1458:16\nStaticInjector.prototype.get@webpack-internal:///../../../core/esm5/core.js:1326:20\nresolveToken@webpack-internal:///../../../core/esm5/core.js:1516:17\ntryResolveToken@webpack-internal:///../../../core/esm5/core.js:1458:16\nStaticInjector.prototype.get@webpack-internal:///../../../core/esm5/core.js:1326:20\nresolveNgModuleDep@webpack-internal:///../../../core/esm5/core.js:11065:12\n_createClass@webpack-internal:///../../../core/esm5/core.js:11102:29\n_createProviderInstance$1@webpack-internal:///../../../core/esm5/core.js:11076:26\nresolveNgModuleDep@webpack-internal:///../../../core/esm5/core.js:11061:17\n_…"
  ​
  promise: Object { __zone_symbol__state: 0, __zone_symbol__value: Error }
  ​
  rejection: Error: StaticInjectorError(AppModule)[options]: 
    StaticInjectorError(Platform: core)[options]: 
      NullInjectorError: No provider for options!
  Stack trace:
  [object Object]
  ​
  stack: "resolvePromise@webpack-internal:///../../../../zone.js/dist/zone.js:783:31\nresolvePromise@webpack-internal:///../../../../zone.js/dist/zone.js:754:17\nscheduleResolveOrReject/&lt;@webpack-internal:///../../../../zone.js/dist/zone.js:831:17\nZoneDelegate.prototype.invokeTask@webpack-internal:///../../../../zone.js/dist/zone.js:424:17\nonInvokeTask@webpack-internal:///../../../core/esm5/core.js:4952:24\nZoneDelegate.prototype.invokeTask@webpack-internal:///../../../../zone.js/dist/zone.js:423:17\nZone.prototype.runTask@webpack-internal:///../../../../zone.js/dist/zone.js:191:28\ndrainMicroTaskQueue@webpack-internal:///../../../../zone.js/dist/zone.js:595:25\nZoneTask.invokeTask@webpack-internal:///../../../../zone.js/dist/zone.js:502:21\ninvokeTask@webpack-internal:///../../../../zone.js/dist/zone.js:1370:9\nglobalZoneAwareCallback@webpack-internal:///../../../../zone.js/dist/zone.js:1388:17\n"
  ​
  task: Object { runCount: 0, _state: "notScheduled", type: "microTask", … }
  ​
  zone: Object { _properties: {…}, _parent: {…}, _name: "angular", … }
  ​
  __proto__: Object { … }
  </code></pre>
  
  <p>Google chrome console traceback:</p>
  
  <pre><code>core.js:1448 ERROR Error: Uncaught (in promise): Error: StaticInjectorError(AppModule)[options]: 
    StaticInjectorError(Platform: core)[options]: 
      NullInjectorError: No provider for options!
  Error: StaticInjectorError(AppModule)[options]: 
    StaticInjectorError(Platform: core)[options]: 
      NullInjectorError: No provider for options!
      at _NullInjector.get (core.js:1002)
      at resolveToken (core.js:1300)
      at tryResolveToken (core.js:1242)
      at StaticInjector.get (core.js:1110)
      at resolveToken (core.js:1300)
      at tryResolveToken (core.js:1242)
      at StaticInjector.get (core.js:1110)
      at resolveNgModuleDep (core.js:10849)
      at _createClass (core.js:10886)
      at _createProviderInstance$1 (core.js:10860)
      at _NullInjector.get (core.js:1002)
      at resolveToken (core.js:1300)
      at tryResolveToken (core.js:1242)
      at StaticInjector.get (core.js:1110)
      at resolveToken (core.js:1300)
      at tryResolveToken (core.js:1242)
      at StaticInjector.get (core.js:1110)
      at resolveNgModuleDep (core.js:10849)
      at _createClass (core.js:10886)
      at _createProviderInstance$1 (core.js:10860)
      at resolvePromise (zone.js:783)
      at resolvePromise (zone.js:754)
      at eval (zone.js:831)
      at ZoneDelegate.invokeTask (zone.js:424)
      at Object.onInvokeTask (core.js:4736)
      at ZoneDelegate.invokeTask (zone.js:423)
      at Zone.runTask (zone.js:191)
      at drainMicroTaskQueue (zone.js:595)
      at ZoneTask.invokeTask [as invoke] (zone.js:502)
      at invokeTask (zone.js:1370)
  defaultErrorLogger @ core.js:1448
  </code></pre>
  
  <p>When I go into debugging mode the last function calling the error is :</p>
  
  <pre><code>function defaultErrorLogger(console) {
      var values = [];
      for (var _i = 1; _i &lt; arguments.length; _i++) {
          values[_i - 1] = arguments[_i];
      }
      console.error.apply(console, values);
  }
  </code></pre>