AndrewPoyntz / time-ago-pipe

An Angular pipe for converting a date string into a time ago
MIT License
130 stars 67 forks source link

TimeAgoPipe does not compile with Angular 5 #37

Open sohaiebCollabCp opened 2 years ago

sohaiebCollabCp commented 2 years ago

Hello,

i wanted to launch build in prod mode with ng build prod i got this error:

ERROR in : Cannot determine the module for class TimeAgoPipe in /home/gh_action/cca-front-end/node_modules/time-ago-pipe/time-ago-pipe.d.ts! Add TimeAgoPipe to the NgModule to fix it. TypeError: Cannot read property 'flags' of undefined

dispite, it is imported and exported in my module.

here is my Project configuration after running ng -v


    _                      _                 ____ _     ___

  / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
 / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
/_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
               |___/

Angular CLI: 1.7.4
Node: 14.17.5
OS: win32 x64
Angular: 5.2.11
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
TimeAgoPipe version: 1.3.2
@angular/cdk: 5.2.5
@angular/cli: 1.7.4
@angular/material: 9.2.4
@angular-devkit/architect: 0.1102.14
@angular-devkit/build-angular: 0.1102.14
@angular-devkit/build-optimizer: 0.3.2
@angular-devkit/build-webpack: 0.1102.14
@angular-devkit/core: 0.3.2
@angular-devkit/schematics: 0.3.2
@ngtools/json-schema: 1.2.0
@ngtools/webpack: 1.10.2
@schematics/angular: 0.3.2
@schematics/package-update: 0.3.2
typescript: 2.5.3
webpack: 3.11.0