webcat12345 / ngx-ui-switch

Angular UI Switch component
https://webcat12345.github.io/ngx-ui-switch/demo/
MIT License
110 stars 68 forks source link

MetaData version mismatch error with version 1.4.9 #219

Closed rahultokase closed 6 years ago

rahultokase commented 6 years ago

HI With the latest version of ngx-ui-switch@1.4.9 and angular 4 application I am getting metadata version mismatch error for this module

C:/mywork/Personnel/mystuff/thirdparty/engage/node_modules/ngx-ui-switch/index.d.ts, found versio n 4, expected 3,

I am using angular cli 1.4.5 version.

can you please share the dependency (that now depends on Angular 5) to the prior version that is compatible with Angular 4. ?

cmckni3 commented 6 years ago

Try ngx-ui-switch version 1.4.4

rahultokase commented 6 years ago

Thanks its working fine . Just a one suggestion cant we have 1.5.X version for angular 5 and 1.4.X version for angular 4.

cmckni3 commented 6 years ago

I agree that it's confusing. Really 1.4.x should work on 2+ but that isn't the case due to how the Angular compiler works.

I will make a note of this for future releases.

cmckni3 commented 6 years ago

I deprecated 1.4.5-1.4.9 and switched to 2.0.0 for Angular v5. I am updating the documentation right now as well. Angular v4 is now ngx-ui-switch@^1.5.0

cmckni3 commented 6 years ago

Documentation updated

aviaur commented 6 years ago

Sorry but it doesn't work ngx-ui-switch 1.5.0 with Angular4... ERROR in Error: Metadata version mismatch for module ...... found version 4, expected 3 ......

With version 1.4.4 it works.

cmckni3 commented 6 years ago

ugh I'll install ng 4 again and see what the issue is.

Your versions all aligned to the same version of 4 right @aviaur?

aviaur commented 6 years ago

Yes I am on version 4.4.6 of Angular

cmckni3 commented 6 years ago

Try 1.6.0 @aviaur. I downgraded ts-node and some other dependencies to what it was on 1.4.4. I also tried it in a sample app using ng 4.4.6.

aviaur commented 6 years ago

It's OK now thx :-)