You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Error: node_modules/angular-auth-oidc-client/lib/auto-login/auto-login-all-routes.guard.d.ts:14:5 - error TS2416: Property 'canLoad' in type 'AutoLoginAllRoutesGuard' is not assignable to the same property in base type 'CanLoad'.
Type '(route: Route, segments: UrlSegment[]) => Observable' is not assignable to type '(route: Route, segments: UrlSegment[]) => boolean | UrlTree | Observable<boolean | UrlTree> | Promise<boolean | UrlTree>'.
Type 'Observable' is not assignable to type 'boolean | UrlTree | Observable<boolean | UrlTree> | Promise<boolean | UrlTree>'.
Error: node_modules/angular-auth-oidc-client/lib/auto-login/auto-login-all-routes.guard.d.ts:15:5 - error TS2416: Property 'canActivate' in type 'AutoLoginAllRoutesGuard' is not assignable to the same property in base type 'CanActivate'.
Type '(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => Observable' is not assignable to type '(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => boolean | UrlTree | Observable<boolean | UrlTree> | Promise<...>'. Type 'Observable' is not assignable to type 'boolean | UrlTree | Observable<boolean | UrlTree> | Promise<boolean | UrlTree>'.
Type 'Observable' is not assignable to type 'Observable<boolean | UrlTree>'.
The types of 'source.operator.call' are incompatible between these types.
Type '(subscriber: import("D:/HCR/repos/experiments/angular-only/oidc-angular-client-spike-v3/oidc-angular-client/node_modules/angular-auth-oidc-client/node_modules/rxjs/internal/Subscriber").Subscriber, source: any) => import("D:/HCR/repos/experiments/angular-only/oidc-angular-client-spike-v3/oidc-angular-client/nod...' is not assignable to type '(subscriber: import("D:/HCR/repos/experiments/angular-only/oidc-angular-client-spike-v3/oidc-angular-client/node_modules/rxjs/dist/types/internal/Subscriber").Subscriber, source: any) => import("D:/HCR/repos/experiments/angular-only/oidc-angular-client-spike-v3/oidc-angular-client/node_modules/rxjs/dist/types/i...'.
Types of parameters 'subscriber' and 'subscriber' are incompatible.
Type 'Subscriber' is missing the following properties from type 'Subscriber': syncErrorValue, syncErrorThrown, syncErrorThrowable, _unsubscribeAndRecycle, and 2 more.
Error: node_modules/angular-auth-oidc-client/lib/interceptor/auth.interceptor.d.ts:14:5 - error TS2416: Property 'intercept' in type 'AuthInterceptor' is not assignable to the same property in base type 'HttpInterceptor'.
Type '(req: import("D:/HCR/repos/experiments/angular-only/oidc-angular-client-spike-v3/oidc-angular-client/node_modules/@angular/common/http/http").HttpRequest, next: import("D:/HCR/repos/experiments/angular-only/oidc-angular-client-spike-v3/oidc-angular-client/node_modules/@angular/common/http/http").HttpHandler) =>...' is not assignable to type '(req: import("D:/HCR/repos/experiments/angular-only/oidc-angular-client-spike-v3/oidc-angular-client/node_modules/@angular/common/http/http").HttpRequest, next: import("D:/HCR/repos/experiments/angular-only/oidc-angular-client-spike-v3/oidc-angular-client/node_modules/@angular/common/http/http").HttpHandler) =>...'. Two different types with this name exist, but they are unrelated.
Call signature return types 'Observable<HttpEvent>' and 'Observable<HttpEvent>' are incompatible.
The types of 'source' are incompatible between these types.
Type 'import("D:/HCR/repos/experiments/angular-only/oidc-angular-client-spike-v3/oidc-angular-client/node_modules/angular-auth-oidc-client/node_modules/rxjs/internal/Observable").Observable' is not assignable to type 'import("D:/HCR/repos/experiments/angular-only/oidc-angular-client-spike-v3/oidc-angular-client/node_modules/rxjs/dist/types/internal/Observable").Observable'.
Error: src/app/auth-config.module.ts:35:34 - error TS2345: Argument of type 'Promise<OpenIdConfiguration | undefined>' is not assignable to parameter of type 'Promise | Promise[]'.
Type 'Promise<OpenIdConfiguration | undefined>' is not assignable to type 'Promise'.
Type 'OpenIdConfiguration | undefined' is not assignable to type 'OpenIdConfiguration'.
Type 'undefined' is not assignable to type 'OpenIdConfiguration'.
35 return new StsConfigHttpLoader(config$);
~~~~~~~`
Expected behavior
Should build successfully
The text was updated successfully, but these errors were encountered:
Describe the bug
Using the auth-config.module.ts bits from sample-code-flow-http-config project results in compile error
To Reproduce
Steps to reproduce the behavior:
`Error: node_modules/angular-auth-oidc-client/lib/auto-login/auto-login-all-routes.guard.d.ts:14:5 - error TS2416: Property 'canLoad' in type 'AutoLoginAllRoutesGuard' is not assignable to the same property in base type 'CanLoad'.
Type '(route: Route, segments: UrlSegment[]) => Observable' is not assignable to type '(route: Route, segments: UrlSegment[]) => boolean | UrlTree | Observable<boolean | UrlTree> | Promise<boolean | UrlTree>'.
Type 'Observable' is not assignable to type 'boolean | UrlTree | Observable<boolean | UrlTree> | Promise<boolean | UrlTree>'.
14 canLoad(route: Route, segments: UrlSegment[]): Observable;
~~~~~~~
Error: node_modules/angular-auth-oidc-client/lib/auto-login/auto-login-all-routes.guard.d.ts:15:5 - error TS2416: Property 'canActivate' in type 'AutoLoginAllRoutesGuard' is not assignable to the same property in base type 'CanActivate'.
Type '(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => Observable' is not assignable to type '(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => boolean | UrlTree | Observable<boolean | UrlTree> | Promise<...>'. Type 'Observable' is not assignable to type 'boolean | UrlTree | Observable<boolean | UrlTree> | Promise<boolean | UrlTree>'.
Type 'Observable' is not assignable to type 'Observable<boolean | UrlTree>'.
The types of 'source.operator.call' are incompatible between these types.
Type '(subscriber: import("D:/HCR/repos/experiments/angular-only/oidc-angular-client-spike-v3/oidc-angular-client/node_modules/angular-auth-oidc-client/node_modules/rxjs/internal/Subscriber").Subscriber, source: any) => import("D:/HCR/repos/experiments/angular-only/oidc-angular-client-spike-v3/oidc-angular-client/nod...' is not assignable to type '(subscriber: import("D:/HCR/repos/experiments/angular-only/oidc-angular-client-spike-v3/oidc-angular-client/node_modules/rxjs/dist/types/internal/Subscriber").Subscriber, source: any) => import("D:/HCR/repos/experiments/angular-only/oidc-angular-client-spike-v3/oidc-angular-client/node_modules/rxjs/dist/types/i...'.
Types of parameters 'subscriber' and 'subscriber' are incompatible.
Type 'Subscriber' is missing the following properties from type 'Subscriber': syncErrorValue, syncErrorThrown, syncErrorThrowable, _unsubscribeAndRecycle, and 2 more.
15 canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable;
~~~~~~~~~~~
Error: node_modules/angular-auth-oidc-client/lib/interceptor/auth.interceptor.d.ts:14:5 - error TS2416: Property 'intercept' in type 'AuthInterceptor' is not assignable to the same property in base type 'HttpInterceptor'.
Type '(req: import("D:/HCR/repos/experiments/angular-only/oidc-angular-client-spike-v3/oidc-angular-client/node_modules/@angular/common/http/http").HttpRequest, next: import("D:/HCR/repos/experiments/angular-only/oidc-angular-client-spike-v3/oidc-angular-client/node_modules/@angular/common/http/http").HttpHandler) =>...' is not assignable to type '(req: import("D:/HCR/repos/experiments/angular-only/oidc-angular-client-spike-v3/oidc-angular-client/node_modules/@angular/common/http/http").HttpRequest, next: import("D:/HCR/repos/experiments/angular-only/oidc-angular-client-spike-v3/oidc-angular-client/node_modules/@angular/common/http/http").HttpHandler) =>...'. Two different types with this name exist, but they are unrelated.
Call signature return types 'Observable<HttpEvent>' and 'Observable<HttpEvent>' are incompatible.
The types of 'source' are incompatible between these types.
Type 'import("D:/HCR/repos/experiments/angular-only/oidc-angular-client-spike-v3/oidc-angular-client/node_modules/angular-auth-oidc-client/node_modules/rxjs/internal/Observable").Observable' is not assignable to type 'import("D:/HCR/repos/experiments/angular-only/oidc-angular-client-spike-v3/oidc-angular-client/node_modules/rxjs/dist/types/internal/Observable").Observable'.
14 intercept(req: HttpRequest, next: HttpHandler): Observable<HttpEvent>;
~~~~~~~~~
Error: src/app/auth-config.module.ts:35:34 - error TS2345: Argument of type 'Promise<OpenIdConfiguration | undefined>' is not assignable to parameter of type 'Promise | Promise[]'.
Type 'Promise<OpenIdConfiguration | undefined>' is not assignable to type 'Promise'.
Type 'OpenIdConfiguration | undefined' is not assignable to type 'OpenIdConfiguration'.
Type 'undefined' is not assignable to type 'OpenIdConfiguration'.
35 return new StsConfigHttpLoader(config$);
~~~~~~~`
Expected behavior
Should build successfully
The text was updated successfully, but these errors were encountered: