abacritt / angularx-social-login

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

ERROR in Error encountered resolving symbol values statically. Calling function 'SocialLoginModule' #4

Closed sachinghalmegit closed 7 years ago

sachinghalmegit commented 7 years ago

after "ng serve" i'm getting below error, image

after saving any file from work space, it compiles all project files and this time it works well. I'm not getting why this happens. Could you please someone help me to get out of this. Please find below image for the same.

image

jaibatrik commented 7 years ago

Ideally, fixing #3 should fix this as well. I am looking into a possible fix.

sachinghalmegit commented 7 years ago

Please find below app.module.ts file

import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import {FormsModule } from '@angular/forms'; import { HttpModule } from '@angular/http'; import { RouterModule } from '@angular/router'; import { SocialLoginModule, AuthServiceConfig,GoogleLoginProvider, FacebookLoginProvider } from "angular4-social-login"; import { StarRatingModule } from 'angular-star-rating'; import { AppComponent } from './app.component'; import { LandingPageComponent } from './landing-page/landing-page.component'; import { AppHeaderComponent } from './app-header/app-header.component'; let config = new AuthServiceConfig([ { id: GoogleLoginProvider.PROVIDER_ID, provider: new GoogleLoginProvider("") }, { id: FacebookLoginProvider.PROVIDER_ID, provider: new FacebookLoginProvider("") } ]); export function provideConfig() { return config; } @NgModule({ declarations: [ AppComponent, LandingPageComponent, AppHeaderComponent ], imports: [ BrowserModule, FormsModule, HttpModule, StarRatingModule.forRoot(), RouterModule.forRoot([ { path: 'landing', component: LandingPageComponent }, { path: '' , redirectTo:'landing',pathMatch:'full' } ]), SocialLoginModule.initialize(config) ], providers: [{ provide: AuthServiceConfig, useFactory: provideConfig }], bootstrap: [AppComponent ] }) export class AppModule { }

debasishsarkar commented 7 years ago

Hi team, I am new to this angular4 designing, and facing the same issue as everyone. I upgraded the modules to latest 4.3.5. Is the module still incompatible or anyone found to get it worked?

jaibatrik commented 7 years ago

Try the workaround mentioned in this document.