-
Notifications
You must be signed in to change notification settings - Fork 12
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
Cannot find namespace 'adal' #3
Comments
So, I solved this by adding the adal.d.ts file. I am attempting to allow someone to specify a tenant and client id as the endpoints in my app. So, I attempted to put the service configuration and initialization in a separate component from the app component and only initialize after receiving user input from a form. However, this doesn't seem to be working: export class AuthAzureComponent implements OnInit { constructor(private service: Adal4Service, private http: Adal4HTTPService) { } ngOnInit() { onSubmit(form: NgForm) {
} } Am I approaching this incorrectly with your wrapper? I'm new to Angular, so any help would be appreciated. Thanks! |
Hey Brandon, I am getting the same error you mentioned. Can you explain further how you got passed it? What are the contents of the adal.d.ts file you added? |
You just need to add an import statement in app.component: This worked for me. |
This doesn't always seem to happen, but erikholmgren's solutions works when it does. |
I followed your instructions to reproduce the project and on my app.component.ts when I attempt to use:
const config: adal.config = {}
It says it cannot find the namespace 'adal'. Do you have any idea of why this might occur? Is there something else I need to install in the project?
Any help you can offer would be much appreciated. Thanks so much!
The text was updated successfully, but these errors were encountered: