-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR TypeError: Cannot read property 'isCallback' of null #104
Comments
@jycaraujo Can you provide more context to your error? Where are you calling login? Here is some of my working code: export class AppComponent implements OnInit {
constructor(private configService: ConfigurationService, public adalService: AdalService) {
this.adalService.init(this.configService.get(c => c.aadConfig))
}
ngOnInit(): void {
this.adalService.handleWindowCallback(true)
} |
@michaeltarleton my working code is very similar to yours
and this is my login component:
|
What does your production environment file look like? The only reason you would get that error is if there was another error during the constructor that I can see. |
Just had a similar issue, documenting for future users with this issue, fixed it by going back to my previous wotking code and noticing I forgot to init adal with the required configuration before using it. Just add this line before everything happens, I have added in init of app.component.ts
Then check your environment for adalConfig:
|
Hi,
I implemented a login component with "@angular/cli": "~6.2.3" and "adal-angular4": "^3.0.16", it works fine in DEV/UAT environment but when I migrated to PROD I received the following error:
Does anyone know how to fix it? Thanks.
The text was updated successfully, but these errors were encountered: