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

Latest release is broken? #210

Closed
HarelM opened this issue Oct 22, 2017 · 8 comments
Closed

Latest release is broken? #210

HarelM opened this issue Oct 22, 2017 · 8 comments

Comments

@HarelM
Copy link

HarelM commented Oct 22, 2017

I'm getting the following error on my build machine (I think it is new to version 3.0.2):

ERROR in error : Metadata version mismatch for module C:/projects/site/IsraelHiking.Web/node_modules/ngx-pagination/dist/ngx-pagination.d.ts, found version 4, expected 3

angular-cli 1.4.4.

More info can be seen in the build log - scroll down:
https://ci.appveyor.com/project/IsraelHikingHost/site/build/5.1.31

@shusson
Copy link

shusson commented Oct 23, 2017

staying on version 3.0.1 avoids the issue for me

@HarelM
Copy link
Author

HarelM commented Oct 23, 2017

I did that too, just wanted to notify the owner...

@michaelbromley
Copy link
Owner

michaelbromley commented Oct 23, 2017

Yes, you are right. Sorry!

I upgraded the Angular version I use to build the lib, without realizing that they switched to a new format for the metadata. I'll release a new patch version asap with compatible metadata and wait until the next major release to upgrade the Angular version.

So the solution for now is stick to 3.0.1 (unless you are running Angular 5 already). There is only a single fix in the latest release which most of you will likely not need.

@skorunka
Copy link

Same problem, solved by downgrade to 3.0.1.

@michaelbromley
Copy link
Owner

Okay people, please try version 3.0.3, which has just been published to npm. Let me know if that resolves the issues for you.

@chpoit
Copy link

chpoit commented Oct 23, 2017

Seems to be fixed on my end. Thanks.

@BTAVE01
Copy link

BTAVE01 commented Mar 28, 2018

I'm using angular 5 and the version 3.1.0 but I see the same ERROR in Metadata version mismatch for .../node_modules/@angular/core/core.d.ts, found version 4, expected 3

ERROR in ./src/main.ts
Module not found: Error: Can't resolve './$$_gendir/app.module.ngfactory' in ..../angular_components/src'
@ ./src/main.ts 3:0-70
@ multi ./src/main.ts

@HarelM
Copy link
Author

HarelM commented Mar 29, 2018

I'm using version 3.1.0 now and have not issues with cli compilation.

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

6 participants