doesn't work with angular 9 version
See original GitHub issueI have an error in console, when try to import TimeAgoPipe and add to module declarations.
So, little “crutch” like that solved my problem
...
import { TimeAgoPipe } from 'time-ago-pipe';
@Pipe({
name: 'timeAgo',
pure: false
})
export class TimeAgoExtendsPipe extends TimeAgoPipe {}
@NgModule({
declarations: [
TimeAgoExtendsPipe,
...
Issue Analytics
- State:
- Created 4 years ago
- Reactions:39
- Comments:18
Top Results From Across the Web
Angular CLI version is not compatible with Angular version
The Problem. The CLI version you have installed doesn't meet the requirements for your Angular version as the error says:
Read more >Version 9 of Angular Now Available — Project Ivy has arrived!
The 9.0.0 release of Angular is here! This is a major release that spans the entire platform, including the framework, Angular Material, and...
Read more >Angular 9 for Beginners — How to Install Your First App with ...
But this doesn't mean Angular is not important anymore. On the. ... As a front end developer, I have worked with Angular.
Read more >Angular CLI update issues: Manually Update your ... - Medium
At the time of writing, you should see version 7.x.x. This is the correct version. This is where the first issue rears its...
Read more >How To Update Angular CLI To Latest Version
Then run npm cache verify command to clear the node packages cache. ... This flag is not required, once final version of Angular...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same problem with Angular 9.
It does work in Angular 9 with one little modification:
Note that you have to implement PipeTransform in order to not get compilation error on
@Pipe
. Not sure why I both have to extend a class which implements an interface AND implement the interface. But this TimeAgo has caused me enough troubles now, so I’m happy enough as long as it is working.