-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Angular - optional chaining not working with Signal object with optional property, #56418
Comments
Without an actually runnable reproduction it's impossible to verify, but it looks to me like the type-checking error is correct per your types. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Which @angular/* package(s) are the source of the bug?
common, core
Is this a regression?
Yes
Description
This works:
But this keeps giving NG2 - Object is possibly undefined:
User is a simple object:
Please provide a link to a minimal reproduction of the bug
See above simple code
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
``
The text was updated successfully, but these errors were encountered: