Base solution for your next web application
Open Closed

Angular 2 Legacy application not working #6596


User avatar
0
firnas created

I have a asp zero angular 2 project created back in year 2017. No development was done for this project after mid of 2018 and lived in our repo. I downloaded the source code and installed the node modules using yarn. When i run the angular project using npm start i get the below error,

ERROR in Metadata version mismatch for module D:/TactCards/TactCardProject/tact.cards/trunk-sapphire/src/tactcards.Web.Host/node_modules/abp-ng2-module/node_modules/@angular/http/http.d.ts, found version 4, expected 3, resolving symbol ABP_HTTP_PROVIDER in D:/TactCards/TactCardProject/tact.cards/trunk-sapphire/src/tactcards.Web.Host/node_modules/abp-ng2-module/src/abp.module.ts, resolving symbol RootModule in D:/TactCards/TactCardProject/tact.cards/trunk-sapphire/src/tactcards.Web.Host/src/root.module.ts, resolving symbol RootModule in D:/TactCards/TactCardProject/tact.cards/trunk-sapphire/src/tactcards.Web.Host/src/root.module.ts

Can you please let me know why i am getting this error? I googled the error which led me to this linke https://github.com/aspnetboilerplate/module-zero-core-template/issues/141

i changed the @angular/http versiong to 4.3.6 but still the above error occures. Can anyone please help me to resolve this issue?


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    @firnas

    Does your GitHub repo contains yarn.lock file ? If so, have you installed packages using yarn ?