Closed ssumit closed 4 years ago
Following the wiki, can you try import * as AuthenticationContext from 'adal-angular/lib/adal'
when you want to use the library?
I'm mostly looking for more context here, as it looks like some of your naming conventions are off. AdalAngular
doesn't seem to be declared anywhere specifically as AdalAngular
, which is likely why you're seeing this error.
Additionally, all current authentication work from Microsoft is delivered through the msal js
library here. adal js
is still supported only for security fixes. We recommend moving to msal js
for any advanced feature requests and bugfixes.
I tried npm install adal-angular I'm on webpack 2.7.0, angularjs 1.5.11 and adal-angular 1.0.17.
I'm trying to use it in app.js like:
import 'adal-angular'; .... export default angular.module('demoApp', ['otherModule', 'AdalAngular']);
No extra code from adal is being referenced and used.
However, I get error: 0: [$injector:modulerr] Failed to instantiate module demoApp due to: Error: [$injector:modulerr] Failed to instantiate module AdalAngular due to: Error: [$injector:nomod] Module 'AdalAngular' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
Is there any extra setting or config needed ? I have like 10 other modules that I can use successfully. The node-modules of course have one folder for adal after npm install.