我"@azure/msal-angular": "^0.1.2"
在两个项目中都使用 msal.js Angular 6
,但Angular 7
出现以下错误:
SCRIPT1002: Syntax error
vendor.js (64379,1)
第 64379 行的 .js 代码
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;
}}
我添加了rxjs-compat
npm 模块来支持 Angular 6+。
为 IE 11 尝试了以下修复:
uncommented polyfills.ts
<meta http-equiv="X-UA-Compatible" content="IE=edge" />