Closed venkatesh-thatham closed 3 years ago
Invalid Issue Template: Please update the original issue and make sure to fill out the entire issue template so we can better assist you.
@thatham What versions of msal-angular
and msal-browser
are you using? Please make sure you're using the latest: msal-angular@2.0.0-beta.0
and msal-browser@2.12.0
@tnorling I'm using "@azure/msal-angular": "^2.0.0-beta.0" and "@azure/msal-browser": "^2.12.0". Here's my package.json for your reference.
{
"name": "test-app",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"hmr": "ng serve --configuration hmr",
"build": "ng build --prod",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "~11.2.5",
"@angular/common": "~11.2.5",
"@angular/compiler": "~11.2.5",
"@angular/core": "~11.2.5",
"@angular/forms": "~11.2.5",
"@angular/platform-browser": "~11.2.5",
"@angular/platform-browser-dynamic": "~11.2.5",
"@angular/router": "~11.2.5",
"@azure/msal-angular": "^2.0.0-beta.0",
"@azure/msal-browser": "^2.12.0",
"rxjs": "~6.6.0",
"rxjs-compat": "^6.5.4",
"tslib": "^2.0.0",
"zone.js": "~0.11.3"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.1102.3",
"@angular/cli": "~11.2.4",
"@angular/compiler-cli": "~11.2.5",
"@angular/language-service": "~11.2.5",
"@angularclass/hmr": "^2.1.3",
"@types/jasmine": "~3.6.0",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^12.11.1",
"codelyzer": "^6.0.0",
"jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~5.0.0",
"karma": "~6.1.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.0.3",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0",
"protractor": "~7.0.0",
"ts-node": "~8.3.0",
"tslint": "~6.1.0",
"typescript": "~4.1.5"
}
}
@thatham Can you try reinstalling your packages? initializeWrapperLibrary is a function and we haven't seen this before. Are you able to reproduce this with our samples?
@tnorling found the root cause, I've used muliptovider for factory "multi: true" that cause this error. Thank you for your time and effort
Library
msal@1.x.x
or@azure/msal@1.x.x
@azure/msal-browser@2.x.x
@azure/msal-node@1.x.x
@azure/msal-react@1.x.x
@azure/msal-angular@0.x.x
@azure/msal-angular@1.x.x
@azure/msal-angular@2.x.x
@azure/msal-angularjs@1.x.x
Framework
Description
Error Message
Error Message: core.js:6140 ERROR TypeError: this.instance.initializeWrapperLibrary is not a function at new MsalService (azure-msal-angular.js:35) at Object.MsalService_Factory [as factory] (azure-msal-angular.js:79) at R3Injector.hydrate (core.js:11363) at R3Injector.get (core.js:11183) at NgModuleRef$1.get (core.js:25238) at Object.get (core.js:24952) at lookupTokenUsingModuleInjector (core.js:3319) at getOrCreateInjectable (core.js:3431) at ɵɵdirectiveInject (core.js:14612) at NodeInjectorFactory.AppComponent_Factory [as factory]
MSAL Configuration
Reproduction steps
app.config.ts
app.module.ts
Expected behavior
Identity Provider
Browsers/Environment
Regression
Security
Source