Skip to content

NR5: registerType: XXXX: the property "l" is internal and cannot be used. #5820

Closed

Description

@gorenje

Current Behavior

I have a node that is "minised" by default, i.e. the label isn't shown. To do that, I use the 'l' parameter and set it to false.

This works fine in NR4 and the node, when placed on the workspace, is "minised". In NR5, the node is shown with its label and this error is shown in the browser console:

registerType: XXXX: the property "l" is internal and cannot be used.

Question is how the functionality which 'l = false' provides is now done?

Expected Behavior

Label for the node isn't shown

Steps To Reproduce

set 'l' in the registerType function.

Example flow

No response

Environment

  • Node-RED version: Docker tag 5.0.0
  • Node.js version: Docker tag 5.0.0
  • npm version: Docker tag 5.0.0
  • Platform/OS: Docker tag 5.0.0
  • Browser: Firefox

Activity

  1. knolleary commented on Jun 15, 2026

    @knolleary
    Member

    There isn't a way to do it. We didn't have a requirement for contrib nodes to default to having their label hidden - never seen that done and it isn't documented as a feature.

    We could add back special case handling for that property to avoid the new check that tries to avoid cases where nodes use reserved property names without knowing they are reserved.

  2. gorenje commented on Jun 15, 2026

    @gorenje
    ContributorAuthor

    My use case is defining the start and end points in state diagrams:

    Image

    Those nodes take no settings and are just visual representation of start and end points of state diagrams, as in the UML equivalents:

    Image

    So yes, this would be nice to be able to define this on contrib nodes ... perhaps just allow the 'l' parameter ;)

  3. added theissue type on Jun 16, 2026
  4. knolleary commented on Jun 16, 2026

    @knolleary
    Member

    I think allowing l to be overridden is entirely reasonable. We can add that as a special case to allow through the property check.

  5. GogoVega commented on Jun 16, 2026

    @GogoVega
    Contributor

    I suggest adding an override property for this kind of case. (I don't know where yet)

    If we allow l, should we also allow the input/output label?

  6. gorenje commented on Jun 16, 2026

    @gorenje
    ContributorAuthor
  7. GogoVega commented on Jun 16, 2026

    @GogoVega
    Contributor

    When you register a node definition, you cannot have a private property in the defaults object within your node definition. It will be removed from the defaults object during the registration. So you will not be able to choose the default value of the l property.

  8. gorenje commented on Jun 16, 2026

    @gorenje
    ContributorAuthor

    I don't know, I just feel like there was nothing originally broken here. Since defining default values is a developer thing, i.e. this does not affect the user, a developer should be given the freedom to shoot themselves in the foot, i.e. defining variables names or default values that overlap with builtin properties.

    Did this occur in the wild? I.e. that developers defined nodes that somehow broke everything or is this a preventive measure for potential future problems?

    That was what I meant when I asked what is the problem being fixed here ...

  9. knolleary commented on Jul 1, 2026

    @knolleary
    Member

    @gorenje I have been reminded that if your use case is that you want the default state for your node to have its label hidden, then you should set showLabel: false in its definition. You don't need to be overriding the l property at all. This is how the link nodes do it:

  10. gorenje commented on Jul 2, 2026

    @gorenje
    ContributorAuthor

    I tried the showLabel: false but it didn't work, label is still shown.

    I've attached a flows.json that contains a flow that installs a test node using the nodedev package. I tried it in NR5 and NR4 and neither worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions