abacritt / angularx-social-login

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

Cannot declare GoogleSigninButtonDirective in NgModule Declarations #649

Closed AirborneFluff closed 1 year ago

AirborneFluff commented 1 year ago

When trying to use the: <asl-google-signin-button></asl-google-signin-button> tag in the HTML, receiving a "is not known element" error. After adding: import { GoogleSigninButtonDirective } from '@abacritt/angularx-social-login'; @NgModule({ declarations: [ AppComponent, GoogleSigninButtonDirective ], imports: [ BrowserModule, AppRoutingModule, ], I receive the error "Cannot declare 'GoogleSigninButtonDirective' in an NgModule as it's not a part of the current compilation.(-996001)". Using Angular v15.0.1

AirborneFluff commented 1 year ago

See Issue #563. Use must import the SocialLoginModule instead of the directive

@NicolasRoehm

import { SocialLoginModule } from '@abacritt/angularx-social-login'; @NgModule({ imports: [ SocialLoginModule ] }) export class AuthModule {}