title: cannot determine the module for component angular 5
body: <p>I'm getting following error when I build the Angular app using "ng build --prod". This is working when I build with Angular 4 and getting error with Angular 5. With Angular 5 "ng serve" is working perfectly.</p>
  
  <blockquote>
    <p>ERROR in Error: Cannot determine the module for class TimeAgoPipe in mypath/node_modules/time-ago-pipe/time-ago-pipe.ts! Add TimeAgoPipe to the NgModule to fix it.</p>
  </blockquote>
  
  <p>Getting error for <a href="https://www.npmjs.com/package/time-ago-pipe" rel="noreferrer">https://www.npmjs.com/package/time-ago-pipe</a> </p>
  
  <p>Any solutions ?</p>