Circular dependency in DI detected for MsalService #7410
Labels
bug-unconfirmed
A reported bug that needs to be investigated and confirmed
msal-angular
Related to @azure/msal-angular package
msal-browser
Related to msal-browser package
Needs: Attention 👋
Awaiting response from the MSAL.js team
public-client
Issues regarding PublicClientApplications
question
Customer is asking for a clarification, use case or information.
Core Library
MSAL.js (@azure/msal-browser)
Core Library Version
@azure/msal-angular 3.1.0
Wrapper Library
MSAL Angular (@azure/msal-angular)
Wrapper Library Version
@azure/msal-angular 3.1.0
Public or Confidential Client?
Public
Description
When running Jest tests my application started out throwing "Circular dependency in DI detected for MsalService" after migrating to @azure/msal-angular v3.1.0 and azure/msal-browser v3.27.0.
This is happening only when I run the tests, which wasn't happening before the migration.
I believe that if you also update your sample here:
You'll get the same error.
Error Message
NG0200: Circular dependency in DI detected for MsalService. Find more at https://angular.dev/errors/NG0200
MSAL Logs
No response
Network Trace (Preferrably Fiddler)
MSAL Configuration
Relevant Code Snippets
-
Reproduction Steps
Install the latest version in your Angular sample:
https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-angular-v3-samples/angular18-standalone-sample
Expected Behavior
Jest tests running smoothly as before the migration
Identity Provider
Entra ID (formerly Azure AD) / MSA
Browsers Affected (Select all that apply)
Chrome
Regression
@azure/msal-browser 3.26.1
The text was updated successfully, but these errors were encountered: