title: Why in angular observable timer is working locally not working after deployment?
body: <p>The below code working proper in locally but after deployment it doesn't work.</p>
  
  <pre><code>import { Observable } from "rxjs/Observable";
  let somethingTimer = Observable.timer(5000);
  // rest of other code.
  </code></pre>
  
  <p>After changing above code to below code working proper both locally and on production server.</p>
  
  <pre><code>import { timer } from 'rxjs/observable/timer';
  let somethingTimer = timer(5000);
  // rest of other code.
  </code></pre>
  
  <p>Why this happen any explanation.</p>
  
  <p>Configuration:</p>
  
  <pre><code>Angular CLI: 6.0.3
  Node: 8.11.2
  OS: win32 x64
  Angular:
  ...
  
  Package                      Version
  --------------------------------------
  @angular-devkit/architect    0.6.3
  @angular-devkit/core         0.6.3
  @angular-devkit/schematics   0.6.3
  @schematics/angular          0.6.3
  @schematics/update           0.6.3
  rxjs                         6.2.0
  typescript                   2.7.2
  </code></pre>
  
  <p><strong>Error in console log</strong></p>
  
  <blockquote>
    <p>TypeError: a.timer is not a function</p>
  </blockquote>