michaelbromley / ngx-pagination

Pagination for Angular
http://michaelbromley.github.io/ngx-pagination/
MIT License
1.21k stars 245 forks source link

Error with Angular 11.2.13 #376

Open rasa-app opened 3 years ago

rasa-app commented 3 years ago

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 () at compiler.js:formatted:1 at Array.forEach () at JitCompiler._loadModules (compiler.js:formatted:1)

Steps to reproduce:

  1. Import NgxPaginationModule to your project
  2. Add it to your imports: []
  3. Compile
  4. Run
  5. 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: