'MsalModule' does not appear to be an NgModule class #5173
Labels
answered
Question has received "first qualified response"
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
public-client
Issues regarding PublicClientApplications
question
Customer is asking for a clarification, use case or information.
Core Library
MSAL.js v2 (@azure/msal-browser)
Core Library Version
2.28.1
Wrapper Library
MSAL Angular (@azure/msal-angular)
Wrapper Library Version
2.4.1
Public or Confidential Client?
Public
Description
Cannot build angular library which imports MsalModule.
Error Message
✖ Compiling with Angular sources in Ivy partial compilation mode.
projects/etips-utils/auth/src/auth.module.ts:51:5 - error NG6002: 'MsalModule' does not appear to be an NgModule class.
51 MsalModule
~~~~~~~~~~
node_modules/@azure/msal-angular/msal.module.d.ts:5:22
5 export declare class MsalModule {
~~~~~~~~~~
This likely means that the library (@azure/msal-angular) which declares MsalModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.
Msal Logs
No response
MSAL Configuration
Relevant Code Snippets
Reproduction Steps
Expected Behavior
Library should build successfully.
Identity Provider
Azure AD / MSA
Browsers Affected (Select all that apply)
Chrome
Regression
No response
Source
External (Customer)
The text was updated successfully, but these errors were encountered: