Previously, I had integrated the Microsoft toolkit into my Angular 11 application without any issues. However, when I was asked to upgrade to Angular 13 and updated the toolkit to its latest version (2.3.2 at the time of writing), I started encountering compilation errors. Surprisingly, these errors were not related to my application but rather stemmed from one of the toolkit's dependencies, microsoft/fast-foundation.
The only component I am using is:
<mgt-person person-query="me" view="oneline"></mgt-person>
I have configured it in the app component as follows:
Providers.globalProvider = new Msal2Provider({
clientId: authConfig.azureClintId,
authority: authConfig.azureTenantId
});
However, upon compiling the code, I started receiving numerous errors like the ones below:
Error: node_modules/@microsoft/fast-foundation/dist/fast-foundation.d.ts:6358:26 - error TS2320: Interface 'TextField' cannot simultaneously extend types 'FormAssociatedTextField' and 'DelegatesARIATextbox'.
Named property 'ariaBusy' of types 'FormAssociatedTextField' and 'DelegatesARIATextbox' are not identical.
6358 export declare interface TextField extends StartEnd, DelegatesARIATextbox {
~~~~~~~~~
Error: node_modules/@microsoft/fast-foundation/dist/fast-foundation.d.ts:6358:26 - error TS2320: Interface 'TextField' cannot simultaneously extend types 'FormAssociatedTextField' and 'DelegatesARIATextbox'.
Named property 'ariaDisabled' of types 'FormAssociatedTextField' and 'DelegatesARIATextbox' are not identical.
6358 export declare interface TextField extends StartEnd, DelegatesARIATextbox {
~~~~~~~~~
Error: node_modules/@microsoft/fast-foundation/dist/fast-foundation.d.ts:6358:26 - error TS2320: Interface 'TextField' cannot simultaneously extend types 'FormAssociatedTextField' and 'DelegatesARIATextbox'.
Named property 'ariaHidden' of types 'FormAssociatedTextField' and 'DelegatesARIATextbox' are not identical.
6358 export declare interface TextField extends StartEnd, DelegatesARIATextbox {
~~~~~~~~~
Do you know of a solution to this issue? Have you encountered this problem before?
Appreciate your help.