Skip to content
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: com.microsoft.aad.adal.AuthenticationContext is not a constructor #5

Open
markballenger opened this issue Aug 28, 2018 · 2 comments

Comments

@markballenger
Copy link

Which platform(s) does your issue occur on?

  • Android
  • emulator or device. What type of device? Android

Please, tell us how to recreate the issue in as much detail as possible.

Follow instructions on homepage with latest tns drawer ng template plus add angular provider definition to app.module.ts for DI. Add code to trigger the adal context login at ngOnInit of app.component.ts, then run: $tns run android

It appears typings are not up to date with the defined peer dependency is my guess. Perhaps harden the minor version of ADAL? Not sure, but this doesn't work OOB at the moment.

@markballenger
Copy link
Author

I think it may have been this commit actually. Seems like android builds with this now is pointing typings to the ios ADAL, causing the ctor error.

https://github.com/NavaraBV/nativescript-adal/blob/89a859f3b19913e750ebcde34ccc597743c73608/src/references.d.ts

@sebastiangug
Copy link

@markballenger have you managed to fix this issue? have been looking at the reason behind this occurs and such but no luck yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants