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

Error: Metadata version mismatch for module #358

Open
JessicaMouta opened this issue May 13, 2020 · 1 comment
Open

Error: Metadata version mismatch for module #358

JessicaMouta opened this issue May 13, 2020 · 1 comment

Comments

@JessicaMouta
Copy link

error in ng serve
ERROR in Error: Metadata version mismatch for module /../node_modules/ngx-pagination/dist/ngx-pagination.d.ts, found version 4, expected 3, resolving symbol AppModule in /../src/app/app.module.ts

Angular version:^4.0.0

ngx-pagination version: ^5.0.0

Description of issue:

Steps to reproduce:

Expected result:

Actual result:

Demo: (if possible, edit this StackBlitz demo and paste the link to your fork)

Any relevant code:


@michaelbromley
Copy link
Owner

Hi there,

You're on a pretty old version of Angular there. There's this line in the readme of this lib:

This library is built to work with Angular 5+, and support ahead-of-time compilation. If you need to support an earlier or pre-release version of Angular for now, please see the changelog for advice on which version to use.

So to support Angular 4 you'll need version 3.3.1: https://github.com/michaelbromley/ngx-pagination/blob/master/CHANGELOG.md#331-2019-06-12

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

2 participants