Skip to content
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

Console errors when required input is used in afterRenderEffect #697

Open
Tlepel opened this issue Mar 3, 2025 · 0 comments
Open

Console errors when required input is used in afterRenderEffect #697

Tlepel opened this issue Mar 3, 2025 · 0 comments

Comments

@Tlepel
Copy link

Tlepel commented Mar 3, 2025

Is this a regression?

No

Description

When a component uses a required input within a afterRenderEffect, Angular (error)logs the following error:

ERROR RuntimeError: NG0950: Input is required but no value is available yet. Find more at https://angular.dev/errors/NG0950

Changing the afterRenderEffect to a 'regular' effect removes the error log.

The test still passes as expected, so it's not a breaking bug.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

ERROR RuntimeError: NG0950: Input is required but no value is available yet. Find more at https://angular.dev/errors/NG0950

Please provide the environment you discovered this bug in

Angular: 19.0.7
Spectator: 19.3.0
Jest: 29.7.0

Anything else?

No response

Do you want to create a pull request?

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant