title: ASP.NET CORE 2 + ANGULAR 4: NodeInvocationException: Prerendering failed because of error: ReferenceError: window is not defined
body: <p>I am trying to use ngx-chips for tag-input, but I am having this issue with importing BrowserAnimationsModule.</p>
  
  <p>On importing BrowserAnimationsModule, I get the error below:</p>
  
  <pre><code>An unhandled exception occurred while processing the request.
  
  NodeInvocationException: document is not defined
  ReferenceError: document is not defined
  </code></pre>
  
  <p>Once I comment BrowserAnimationsModule in import under app.module.shared.ts, my app works normal but once I uncomment it, I come up with the same error.</p>
  
  <p>Please how can I trash this, I have been working on this for more than 4days.
  Or suggest any other angular 4 tag-input library
  I am using ASP.NET Core 2 SPA Template.</p>
  
  <p>Thanks...</p>