I'm using the msal.js "@azure/msal-angular": "^0.1.2" in both Angular 6 and Angular 7 projects and I get the following error:
SCRIPT1002: Syntax error
vendor.js (64379,1)
The .js code on line 64379
class AuthenticationResult {
constructor(token, tokenType) {
this._token = "";
this._tokenType = "";
this._token = token;
if (tokenType) {
this._tokenType = tokenType;
}
}
get token() {
return this._token;
}
set token(value) {
this._token = value;
}
get tokenType() {
return this._tokenType;
}
set tokenType(value) {
this._tokenType = value;
}}
I added rxjs-compat npm module to support Angular 6+.
Tried the following fix for IE 11:
uncommented polyfills.ts
<meta http-equiv="X-UA-Compatible" content="IE=edge" />