analogjs / analog

The fullstack meta-framework for Angular. Powered by Vite and Nitro
https://analogjs.org
MIT License
2.5k stars 240 forks source link

Issue with Route Guards from @angular/fire #1130

Closed dalenguyen closed 3 months ago

dalenguyen commented 3 months ago

Please provide the environment you discovered this bug in.

Production

Which area/package is the issue in?

router

Description

It looks like that we cannot use the guard function from @angular/fire due to type mismatch.

image

Please provide the exception or error you saw

The error is `Type 'typeof AuthGuard' is not assignable to type 'CanActivateFn'.`

Other information

No response

I would be willing to submit a PR to fix this issue

dalenguyen commented 3 months ago

I can take a stab at this :D