Microsoft-authentication-library-for-js: [Angular v10][Version 1.0.0] Library build not working(ModuleWithProviders<T>)

Created on 29 Jun 2020  路  6Comments  路  Source: AzureAD/microsoft-authentication-library-for-js

Library

Description

When building a library this error occurs, this is because of deprecation in version 10 of Angular.

Error Message

ERROR: node_modules/@azure/msal-angular/src/msal.module.d.ts:5:86 - error TS2314: Generic type 'ModuleWithProviders' requires 1 type argument(s).

Regression

  • [X ] Did this behavior work before?
    Version: < 10

Edit(Temp fix):
Adding the following property inside "compilerOptions" in your tsconfig.json will make your library buildable.
"skipLibCheck": true,

bug msal-angular no-issue-activity

Most helpful comment

It's been a while since Angular 10 was released. The abovementioned build error is actually the only one after updating to Angular 10 in my case, so this is a blocker. Any update on this?

All 6 comments

@PapaBigBear Thanks for the information. We have not had a chance to test and update MSAL Angular for compatibility with Angular v10, but we'll make sure this is fixed.

This issue has not seen activity in 14 days. It may be closed if it remains stale.

How to fixed!

ERROR in node_modules/@azure/msal-angular/src/msal.module.d.ts:5:86 - error TS2314: Generic type 'ModuleWithProviders' requires 1 type argument(s).

static forRoot(config: Configuration, angularConfig?: MsalAngularConfiguration): ModuleWithProviders;

It's been a while since Angular 10 was released. The abovementioned build error is actually the only one after updating to Angular 10 in my case, so this is a blocker. Any update on this?

This issue has not seen activity in 14 days. It may be closed if it remains stale.

This issue has been closed due to inactivity. If this has not been resolved please open a new issue. Thanks!

Was this page helpful?
0 / 5 - 0 ratings