Skip to content

Build failed due to 'Metadata version mismatch' in 11.0.0 #1105

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

Closed
vincent-cm opened this issue Nov 6, 2017 · 21 comments
Closed

Build failed due to 'Metadata version mismatch' in 11.0.0 #1105

vincent-cm opened this issue Nov 6, 2017 · 21 comments

Comments

@vincent-cm
Copy link

AoT build failed Error: Metadata version mismatch for module ~/node_modules/@swimlane/ngx-datatable/release/datatable.module.d.ts, found version 4, expected 3

I'm submitting a BUG (check one with "x")

[x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior

Error: Metadata version mismatch for module ~/node_modules/@swimlane/ngx-datatable/release/datatable.module.d.ts, found version 4, expected 3

after upgrade 11.0.0
Expected behavior

Reproduction of the problem

What is the motivation / use case for changing the behavior?

npm build to AoT
Please tell us about your environment:

macOS 12.13.1 npm

  • Table version: 0.8.x
  • Angular version: 2.0.x

4.6.6

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

all

  • Language: [all | TypeScript X.X | ES6/7 | ES5]
    ES6
@nitinht1988
Copy link

Version 11.0.0 is only for Angular 5. If you are using older angular version please downgrade your ngx-datatable to 10.x

@mattarau
Copy link

mattarau commented Nov 6, 2017

@nitinht1988 I'm having the same issue with version 10.5.0 and Angular 4.4.6.

EDIT: It shows the error, but works though.

@pranavsreedhar92
Copy link

Having same issue but failed to compile
version: 10.0.0
node : v6.10.0
npm : v3.10.10

@pr0menade
Copy link

The same issue: ERROR in Metadata version mismatch for module .../node_modules/@swimlane/ngx-datatable/release/index.d.ts, found version 4, expected 3,
version: 10.0.5
Angular: 4.3.5
cli: 1.3.0
node: v7.7.3
npm: 4.1.2

@Neuropatic
Copy link

Neuropatic commented Nov 7, 2017

I have the same problem and i've not yet solved it. I cant continue my job cause of this problem....waiting for help.

ERROR in Metadata version mismatch for module
node_modules/@swimlane/ngx-datatable/release/index.d.ts, found version 4, expected 3

Datatable version: 10.5.0
Angular: 4.4.6
Cli: 1.3.2
Node: 8.9.0
Npm: 5.3.0

@mattarau
Copy link

mattarau commented Nov 7, 2017

Just to give a few more information:

  • The issue's title says AoT, but I'm having this issue without it. EDIT: Title has been updated.
  • It happens on serve, test and build
  • Even though it doesn't block the work, it does block deployment since the build returns an error.

@vincent-cm vincent-cm changed the title AoT build failed due to mismatch version in 11.0.0 Build failed due to mismatch version in 11.0.0 Nov 7, 2017
@vincent-cm vincent-cm changed the title Build failed due to mismatch version in 11.0.0 Build failed due to 'Metadata version mismatch' in 11.0.0 Nov 7, 2017
@Paul75
Copy link

Paul75 commented Nov 7, 2017

Hello,

same error with the version 10.5.0 and Angular 4.4.6....

If i downgrade with the version 9.3.1 it works....

Thanks

@ramauidev
Copy link

Hello,

The same error just downgraded the Datatable version to 10.4.0 and it works :)

Thanks

@Paul75
Copy link

Paul75 commented Nov 7, 2017 via email

@Paul75
Copy link

Paul75 commented Nov 7, 2017

for me I have this error :
ERROR in Error: Metadata version mismatch for module /node_modules/@swimlane/ngx-datatable/release/index.d.ts, found version 4, expected 3, resolving symbol HomeModule in /src/app/+home/home.module.ts, resolving symbol HomeModule in /src/app/+home/home.module.ts

in 9.3.0 not do this ....

Thanks

@amcdnl
Copy link
Contributor

amcdnl commented Nov 7, 2017

Can someone make a demo project showing this?

@ingaropolous
Copy link

ingaropolous commented Nov 7, 2017

Hello everyone, same Error
I fixed it updating to "@swimlane/ngx-datatable": "^10.4.0"

In dependenies all @angular 4.4.6
In devDependencies:
angular/cli: "^1.5.0",
angular/compiler-cli: "^4.4.6",
angular/language-service: "^4.4.6"

I hope this helps somebody

@amcdnl
Copy link
Contributor

amcdnl commented Nov 7, 2017

Looks like Material is having this issue too - angular/components#8229 (comment)

@szanellato93
Copy link

Same error here. I updated ngx datatable to version 11 and all angular dependencies to angular 5. I received some errors.. after the downgrade i received this new error. Please help.

@knehez
Copy link

knehez commented Nov 8, 2017

Same error here. but fixed with "@swimlane/ngx-datatable": "10.4.0"
I removed "^" before 10.4.0

@FrancescoBorzi
Copy link
Contributor

I can confirm the issue, using Angular 4. And I can also confirm that the solution posted by @knehez works.
So my guess is that there is something wrong with version 10.5.0.

@amcdnl
Copy link
Contributor

amcdnl commented Nov 16, 2017

Is this still an issue in 11.0.4??

@Farre82
Copy link

Farre82 commented Nov 22, 2017

Hi,

angular/core: "5.0.2" and "@swimlane/ngx-datatable": "11.1.2", still gives

ERROR in Metadata version mismatch for module .../node_modules/@swimlane/ngx-datatable/release/index.d.ts, found version 4, expected 3,

@amcdnl amcdnl self-assigned this Nov 22, 2017
@nadysaptra
Copy link

@amcdnl it was still an issue
i was having the same problem
@swimlane/[email protected]
@angular @4.4.6

@diegosilva13
Copy link

diegosilva13 commented May 6, 2018

Same error here. but fixed with "@swimlane/ngx-datatable": "10.4.0"
I removed "^" before 10.4.0

Thanks @knehez. It's working for us.

@Hypercubed
Copy link
Contributor

Please reopen if this is still an issue.

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