I'm using angular 12 and I need to implement a social login using @abacritt/angularx-social-login. When I use npm i --save @abacritt/angularx-social-login, I get the error
Unable to resolve dependency tree While resolving: app-name Found: @angular/[email protected] @angular/common@~12.2.0 from the root project
Could not resolve dependency: peer @angular/common@"^13.0.0 || ^14.0.0" from @abacritt/[email protected] @abacritt/angularx-social-login@"*" from the root project Fix the upstream dependency conflict, or retry this command with --force or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.
I can't upgrade the angular version, and when I tried to use npm i --save angularx-social-login, some parts are deprecated and don't work anymore.
How can I install a @abacritt/angularx-social-login compatible with angular 12?
In angular 12 use just npm i --save angularx-social-login:4 @abacritt/angularx-social-login is for Angular 13 and 14. Check github repo https://github.com/abacritt/angularx-social-login#subscribe-to-the-authentication-state