Я пытался интегрировать компоненты mgt-react в свое приложение, но, похоже, это противоречит другим пакетам

#reactjs #npm #msal #parcel

#reactjs #npm #msal #посылка

Вопрос:

Это ошибка, которую я получаю при включении mtg-react следующим образом:

import { Login } from "@microsoft/mgt-react";

 components.ts:25 Uncaught TypeError: Cannot redefine property: PersonCardInteraction
       at Function.defineProperty (<anonymous>)
       at components.ts:25
       at Array.forEach (<anonymous>)
       at Object.parcelRequire.../node_modules/@microsoft/mgt-components/dist/es6/components/components.js../mgt-agenda/mgt-agenda (components.ts:25)
       at newRequire (App.d36a57b6.js:47)
       at localRequire (App.d36a57b6.js:53)
       at Object.parcelRequire.../node_modules/@microsoft/mgt-components/dist/es6/index.js../components/components (index.ts:8)
       at newRequire (App.d36a57b6.js:47)
       at localRequire (App.d36a57b6.js:53)
       at Object.parcelRequire.../node_modules/@microsoft/mgt-react/dist/es6/generated/react.js.../Mgt (react.ts:166)
 

Комментарии:

1. Я выполнил шаги, описанные в статье , и это сработало для меня. Можете ли вы подтвердить, что вы делаете то же самое или другое?

2. Да, я переустановил все, чтобы убедиться, что я делаю то же самое, и все равно получаю сообщение об ошибке при попытке добавить компонент <Login />