question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[MSAL for Angular] Fails to compile with the Ivy

See original GitHub issue

I’m submitting a…


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:

Library version


Library version: "@azure/msal-angular": "0.1.2"
Angular version: 8.1.1

Current behavior

Build fails with

ERROR in Attempted to get members of a non-class: "export class MsalConfig {
    constructor() {
        this.authority = "https://login.microsoftonline.com/common";
        this.validateAuthority = true;
        this.cacheLocation = "sessionStorage";
        this.loadFrameTimeout = 6000;
        this.navigateToLoginRequestUrl = true;
    }
}"

Expected behavior

No error

Minimal reproduction of the problem with instructions

Follow the steps here https://angular.io/guide/ivy and run ng serve

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:9
  • Comments:26 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
jasonnuttercommented, Nov 13, 2019

We are working to upgrade @azure/msal-angular to be compatible with latest version of Angular, include Ivy. We’ll update this issue when we have an preview version you can try. Thanks!

2reactions
jasonnuttercommented, Mar 9, 2020

Any particular reason MsalService isn’t provided in root?

I’m not sure, I’ll look into that.

ModuleWithProviders is deprecated

Good to know.

Lastly it would be nice if the typescript source files where published.

I’ll see about including them, hopefully just a setting in ng-packagr.

Read more comments on GitHub >

github_iconTop Results From Across the Web

azure/msal-angular - npm
MSAL for Angular enables Angular web applications to authenticate users using Azure AD work and school accounts (AAD), Microsoft personal ...
Read more >
Module '"@azure/msal-angular"' has no exported member ...
I have an Angular 11 project where I'm trying to import MSAL_CONFIG in app.module, but I only get the error above.
Read more >
azure/msal-node npm build run fails with loader problems
I'm trying to migrate ADAL TO MSAL in Angular. As part of migration for ConfidentialClientApplication, I have installed @azure/msal-node module ...
Read more >
@azure/msal-angular - GitHub Pages
MSAL for Angular enables client-side Angular web applications, running in a web browser, to authenticate users using Azure AD work and school accounts...
Read more >
Angular Ivy (forked) - StackBlitz
from '@azure/msal-angular';. import { AuthenticationResult,. InteractionStatus, PopupRequest,. RedirectRequest } from '@azure/msal-browser';.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found