VadimDez / ngx-order-pipe

▼ Angular 5+ orderBy pipe
https://vadimdez.github.io/ngx-order-pipe/
MIT License
243 stars 57 forks source link

Please add a @Pipe/@Directive/@Component annotation. #13

Closed ravi198715 closed 6 years ago

ravi198715 commented 7 years ago

I tried to run this pipe and i am getting this errror Unexpected module 'Ng2OrderModule' declared by the module 'AppModule'. Please add a @Pipe/@Directive/@Component annotation.

I looked at the files and it seems its missing @pipe annotation. I am running it on angular 4.0.0

Saporules commented 7 years ago

I have the same problem but instead of 'Ng2OrderModule' is 'OrderModule' as the Reademe File shows.

VadimDez commented 7 years ago

Do you still have this issue ?

erperejildo commented 6 years ago

Same here

VadimDez commented 6 years ago

what version of ngx-order-pipe are you using ?

erperejildo commented 6 years ago

installed today so latest one

gkamtzir commented 6 years ago

I've got the same problem with the latest version.

VadimDez commented 6 years ago

Could someone describe how to reproduce this issue?

wobsoriano commented 6 years ago

I bet they're getting this problem in latest version of Ionic...

gkamtzir commented 6 years ago

Ionic version: 3.12.0 I installed the package from npm and then imported it in my app.module.ts. I placed the pipe in the template of one my Components and during compilation this particular error showed up.

wobsoriano commented 6 years ago

I fixed it by following this tutorial .

nyn0x commented 6 years ago

This error appears when I put OrderModule in @NgModule ({declarations: ...})haha. Obviously you have to put it in @NgModule ({imports: ...}) ! :D

erperejildo commented 6 years ago

watched the video but didn't see any fix @sorxrob

VadimDez commented 6 years ago

@erperejildo do you still have this error?

erperejildo commented 6 years ago

No, juts this one https://github.com/VadimDez/ngx-order-pipe/issues/47