You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NR5: registerType: XXXX: the property "l" is internal and cannot be used. #5820
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?
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.
What problem is actually being fixed by not allowing the old behaviour? I ask because these are nodes I am defining (as a developer) and so I should know what I am doing. I.e is there a user related issue here or just limiting what developers can do with their nodes?
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.
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 ...
@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:
Activity
knolleary commentedon Jun 15, 2026
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.
gorenje commentedon Jun 15, 2026
My use case is defining the start and end points in state diagrams:
Those nodes take no settings and are just visual representation of start and end points of state diagrams, as in the UML equivalents:
So yes, this would be nice to be able to define this on contrib nodes ... perhaps just allow the 'l' parameter ;)
knolleary commentedon Jun 16, 2026
I think allowing
lto be overridden is entirely reasonable. We can add that as a special case to allow through the property check.GogoVega commentedon Jun 16, 2026
I suggest adding an
overrideproperty for this kind of case. (I don't know where yet)If we allow
l, should we also allow the input/output label?gorenje commentedon Jun 16, 2026
GogoVega commentedon Jun 16, 2026
When you register a node definition, you cannot have a private property in the
defaultsobject within your node definition. It will be removed from thedefaultsobject during the registration. So you will not be able to choose the default value of thelproperty.gorenje commentedon Jun 16, 2026
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 ...
knolleary commentedon Jul 1, 2026
@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: falsein its definition. You don't need to be overriding thelproperty at all. This is how the link nodes do it:node-red/packages/node_modules/@node-red/nodes/core/common/60-link.html
Line 270 in 85f2b71
gorenje commentedon Jul 2, 2026
I tried the
showLabel: falsebut 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.