我尝试在 app.module.ts 中导入 MsalModule,导入时出现以下错误:
Error: node_modules/@azure/msal-angular/msal.redirect.component.d.ts:14:18 - error TS2314: Generic type 'ɵɵComponentDeclaration' requires 7 type argument(s).
14 static ɵcmp: i0.ɵɵComponentDeclaration<MsalRedirectComponent, "app-redirect", never, {}, {}, never, never, false, never>;
问题是 msal.redirect.component 文件不存在。
我也尝试更新依赖项,但仍然不起作用。
当您使用的库(此处为 MSAL)需要比您正在使用的库更高版本的 Angular 时,就会发生这种错误。