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

Error: NG0950: "Input is required but no value is available yet." Give the input name to the error message #60199

Open
endlacer opened this issue Mar 4, 2025 · 1 comment
Labels
area: core Issues related to the framework runtime core: inputs / outputs
Milestone

Comments

@endlacer
Copy link

endlacer commented Mar 4, 2025

Which @angular/* package(s) are relevant/related to the feature request?

core

Description

At he moment the error reads as follows:

Error: NG0950: Input is required but no value is available yet. Find more at https://angular.dev/errors/NG0950
error properties: Object({ code: -950 })
    at ...

Proposed solution

Just add the input name or its alias to the error message, for example:

Error: NG0950: Input ("requiredInputName") is required but no value is available yet. Find more at https://angular.dev/errors/NG0950
error properties: Object({ code: -950 })
    at ...
@JoostK JoostK added area: core Issues related to the framework runtime core: inputs / outputs labels Mar 4, 2025
@ngbot ngbot bot added this to the needsTriage milestone Mar 4, 2025
@JelleBruisten
Copy link
Contributor

I've looked at the code seems that the function for the input does not know the name of the input ( correct me if I'm wrong ), there is a debugName however that is used for the devtools extension. Would adding this debugName in the error message solve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: core Issues related to the framework runtime core: inputs / outputs
Projects
None yet
Development

No branches or pull requests

3 participants