Skip to content

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

Closed

Description

@endlacer

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 ...

Activity

  1. added
    area: core
    on Mar 4, 2025
  2. added this to the needsTriage milestone on Mar 4, 2025
  3. JelleBruisten commented on Mar 5, 2025

    @JelleBruisten
    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?

  4. added a commit that references this issue on Mar 15, 2025
    197a94c
  5. added a commit that references this issue on Mar 17, 2025
    0615ffb
  6. added a commit that references this issue on Mar 17, 2025
    8953e45
  7. angular-automatic-lock-bot commented on Apr 17, 2025

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  8. locked and limited conversation to collaborators on Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: corecore: inputs / outputsstate: has PR

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions