-
Notifications
You must be signed in to change notification settings - Fork 31
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
Metadata version mismatch found version 4, expected 3 #19
Comments
same issue ../ng4-loading-spinner/ng4-loading-spinner.d.ts, found version 4, expected 3, |
i have same error |
To get it working in Angular 4, you can use older version of the spinner, in package.json include this version, |
The above works when I am just building using ng build but fails when I use ng build --prod. Any fix for the same? |
@deQuota , @alexfeds @burhangul @mallika-chawda Thanks. |
@amitmahida92 I wrote my project on angular 4 so it will be difficult for me to update to angular 5 as there are lot of other dependeicies, so could you suggest other solutions for this issue. |
@kalyank23 I am also doing project in Angular 4, you can still use it by method I have described |
@kalyank23 can you tell me what version of Angular 4 you using? I am not sure but the problem can be that even you install different version its still locked in package-lock.json. So go to package-lock.json and double check that the version is "1.0.27" (make sure there is no ^ symbol, otherwise it will pull other version) and it should be the same in package.json file. package-lock.json
package.json
After that run npm -i --save. Hope it helps |
I've also met this problem, and using v1.0.27 works differently, configuration and methods are different, and I cannot update my dependencies to angular 5 so I've to let go this module :( |
I made it work in my angular 4 code by downloading the ng4-loading-spinner 1.0.27 in my local machine, and using this code as a one more component for my project. Just download and extract to your project and arrange the import statements in your project then you will get it work. |
I use angular 4 and downgrading works, |
@lesiba7 I tried the same thing to downgrade the version to v1.0.27 and changes as you mentioned but |
I also had the same issue in my project , I followed these things:
And it worked fine for me. |
Hi, even i am facing the same error - ERROR in Error: Metadata version mismatch for module /home/dell/Downloads/Datshare/Adaani5.0 (another copy).0/node_modules/ng4-loading-spinner/ng4-loading-spinner.d.ts, found version 4, expected 3, resolving symbol MasterSystemModule in /home/dell/Downloads/Datshare/Adaani5.0 (another And i tried @enjniranjan and @lesiba7 and @alexfeds answers ... but none worked for me |
Hello @suchetaswabhav , Can i have the details of you package.json please? |
@alexfeds thanks! works fine to me |
Metadata version mismatch for module ../ng4-loading-spinner/ng4-loading-spinner.d.ts, found version 4, expected 3,
Getting error above ,
"@angular/core": "^4.4.6",
"ng4-loading-spinner": "^1.1.1",
The text was updated successfully, but these errors were encountered: