New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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'. #1178
Comments
I am having the same issue as above. Upgraded to Angular 12 and V12. |
Can you share a sample repo to reproduce this? Or can we reproduce this with one of our samples? Just tried it out and can not reproduce it in our samples. |
@viswadv @zachstarnes @FabianGosebrink I had this too. Found out the issue was due to updating to Rx.js 7 (because if you're updating, why not update all packages, right?). |
@viswadv @zachstarnes waiting for your feedback and then closing this. |
@avidan-chen we are using Rxjs v6.6.x, we never updated Rxjs to v7. But I can cross-check one more time and get back to you. @FabianGosebrink Unfortunately, I cannot share the repo it's a private app. |
I can totally understand that you can not share the repo. What I meant was: please share a minimal repo which shows the issue.
You can use a config from our samples if you like. Then I can have a look and see what the error is.. Thanks! |
@FabianGosebrink Sure will do that. Please give me a day or two will try to reproduce it with one of the samples. |
Perfect. Waiting for your repo then :) |
Hi everyone, I was having the same issue after upgrading my app to angular 12 and V12. I solved this problem by deleting the node_modules/rxjs and node_modules/rxjs-compact folder and executed npm install again with rxjs v6.6.7 |
@dpeppert @avidan-chen @FabianGosebrink This is working fine with rxjs 6.6.7, earlier we have 6.6.6. Thanks for the help. |
Hello Damien,
After upgrading the lib and Angular to v12 started getting this on the build. Could you please have a look at it, something with return types of the below methods.
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'.
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'.
Thanks!
The text was updated successfully, but these errors were encountered: