Missing dependency error in an angular application

5.7k Views Asked by At

I am trying to create a social login app using angular. When I try to run my angular application I getting the following error and also I am not able to access the login page.

ERROR in The target entry-point

"angular-6-social-login" has missing dependencies: - @angular/core - @angular/common - rxjs

2

There are 2 best solutions below

0
Suren Srapyan On

Try to remove package-lock and node_modules. After reinstall them

3
Delwyn Pinto On

The error message has your solution.

angular-6-social-login requires libraries which your project does not have. Going through its repo, you can see the dependencies it declares here.

Both @angular/core and @angular/common should not need to be added explicitly though. Which makes me think the files have either been deleted, or the versions installed are different than the ones needed.