title: ERROR TypeError: Cannot read property 'pipe' of undefined
body: <p>I have an existing project using <code>angular 6</code>. I have implemented <code>angular universal</code> on my existing project.</p>
  
  <p>Now when I run <code>build:ssr</code> and run <code>node web/server.js</code>. it gives me: <code>Node server listening on http://localhost:4000
  </code></p>
  
  <p>but when I open a browser and type <code>http://localhost:4000</code> in that browser I receive this error.</p>
  
  <pre><code>ERROR TypeError: Cannot read property 'pipe' of undefined
      at AuthInterceptor.addToken (/home/razmjo/workstation/jobsaf-website/web/server.js:362410:13)
      at AuthInterceptor.request (/home/razmjo/workstation/jobsaf-website/web/server.js:362384:21)
      at AuthInterceptor.processIntercept (/home/razmjo/workstation/jobsaf-website/web/server.js:362377:21)
      at AuthInterceptor.intercept (/home/razmjo/workstation/jobsaf-website/web/server.js:362372:21)
      . 
      .
      . 
      .
      at ZoneTask.invokeTask (/home/razmjo/workstation/jobsaf-website/web/server.js:647:21)
      at Server.ZoneTask.invoke (/home/razmjo/workstation/jobsaf-website/web/server.js:632:48)
      at Server.emit (events.js:182:13)
      at parserOnIncoming (_http_server.js:658:12)
  </code></pre>
  
  <p>Note: I have used <a href="https://github.com/serhiisol/ngx-auth" rel="nofollow noreferrer">ngx-auth</a> package for my authentication purpose, and this error come from that package.</p>
  
  <p>Thanks in advance.</p>