Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullInjectorError: No provider for PaginationService! #366

Open
AlonsoK28 opened this issue Jul 24, 2020 · 3 comments
Open

NullInjectorError: No provider for PaginationService! #366

AlonsoK28 opened this issue Jul 24, 2020 · 3 comments

Comments

@AlonsoK28
Copy link

Angular version:
"@angular/cdk": "^9.0.0",

ngx-pagination version:
"ngx-pagination": "^5.0.0",

Description of issue:
I already have a module using ngx-pagination, when I create other module to use ngx-pagination into a new component I got this error ERROR Error: NullInjectorError: No provider for PaginationService!`

Steps to reproduce:
Import ngx-module but error appears

Where I should import PaginationService ?

Greetings

@michaelbromley
Copy link
Owner

Hi,

Please provide at least some code of your NgModule where you are using this library.

@ibermaticaAjLopez
Copy link

I have the same issue but using ngx-easy-table.

@dylan9b
Copy link

dylan9b commented Jun 20, 2022

I have the same issue but using ngx-easy-table.

You need to import 'TableModule' in the app.module.ts as well as any other specific modules making use of the library,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants