abacritt / angularx-social-login

Social login and authentication module for Angular 17
630 stars 388 forks source link

Version 2.0.0 Google button not working #691

Closed gwp-rob closed 1 year ago

gwp-rob commented 1 year ago

With version 2.0.0 both my existing code as well as the included demo library fail with this error message:

Error: src/app/demo/demo.component.html:13:7 - error NG8001: 'asl-google-signin-button' is not a known element:

  1. If 'asl-google-signin-button' is an Angular component, then verify that it is part of this module.
  2. If 'asl-google-signin-button' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

Trying to re-add the module (also tried with standalone component) did not solve the issue.

ErickVal commented 1 year ago

Hi, this work for me, edit module.

import { GoogleSigninButtonModule } from '@abacritt/angularx-social-login'; imports: [GoogleSigninButtonModule]

gwp-rob commented 1 year ago

Working for me as well thanks!