ngx-pagination
ngx-pagination copied to clipboard
Error with Angular 11.2.13
Hi, thank you for your work!
I faced problem using ngx-pagination.
Angular version:^11.2.13
ngx-pagination version:^5.1.0
Description of issue: When I import NgxPaginationModule to NgModule of my project it compiles successfully but at runtime I get this error at console:
Uncaught Error: Can't resolve all parameters for PaginationControlsDirective: (?, ?)
at syntaxError (compiler.js:formatted:17373)
at CompileMetadataResolver._getDependenciesMetadata (compiler.js:formatted:1)
at CompileMetadataResolver._getTypeMetadata (compiler.js:formatted:1)
at CompileMetadataResolver.getNonNormalizedDirectiveMetadata (compiler.js:formatted:1)
at CompileMetadataResolver.loadDirectiveMetadata (compiler.js:formatted:1)
at compiler.js:formatted:1
at Array.forEach (
Steps to reproduce:
- Import NgxPaginationModule to your project
- Add it to your imports: []
- Compile
- Run
- You can see error at console
Expected result: Project run successfully
Actual result: Project fails
Demo: (if possible, edit this StackBlitz demo and paste the link to your fork)
Any relevant code: