Pipe error: Type Paginatepipe is part of the declarations of 2 modules

Asked

Viewed 45 times

0

I have the following error in my template:

Type Paginatepipe is part of the declarations of 2 modules:

I’m doing the import pipe PaginatePipe in 2 modules, which I thought would work normally, but did not work.

Exmemplo:

So I’m doing in the components

ng2-pagination import

import {Paginatepipe, Paginationservice, Paginationcontrolscmp, Ipaginationinstance} from 'ng2-pagination';

@Component({})

Directives: [Paginationcontrolscmp],
providers: [Paginationservice],
Pipes: [Paginatepipe]

Template (It did not happen to put the '<' of the pagination-Controls tag)

pagination-Controls (pageChange)="getPage($Event)" id="server">/pagination-Controls>

  • 1

    Welcome to [en.so]. Some tips: The site is aimed at the Portuguese-speaking public, so your posts need to be in Portuguese only, there is no need to write in English either. Try to use descriptive titles in your questions, most questions accesses come because of the title. Avoid using titles with "Help", "Help", probably if you are posting here is because you need help, is write redundancy in the title. Focus your question on explaining the problem, the error message, and the code. Always try to publish a [mcve]. Use the tags correctly, it’s AngularJS or Angular2?

  • opa, thanks for the tips, will be followed very well from now :D and related to the error, is in angular2, I’m with this error for a while now, and even agr did not get anything

  • Add the code that imports these modules for us to see. Try explaining how your application uses the modules, but try to be brief and explanatory.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.