При использовании клиента от Microsoft Graph я получаю сообщение об ошибке синтаксиса SCRIPT 1002 в IE11. Строка, в которой происходит ошибка:
/**
* -------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
* See License in the project root for license information.
* -------------------------------------------------------------------------------------------
*/
/**
* @class
* Class representing MiddlewareControl
*/
class MiddlewareControl { // here
Соответствующий код:
import * as Msal from '@azure/msal';
import { Client } from '@microsoft/microsoft-graph-client';
export class Graph {
// ...
private client = Client.init({
authProvider: (done) => {
this.getAccessToken()
.catch(reason => {
done(reason, null);
})
.then(response => {
if (response) {
done(null, response);
} else {
done('Could not get an access token', null);
}
});
}
});
// ...
}