TypeError: Object.hasOwn is not a function - Unable to import flow

Hello everyone,

I can't import any flow on node red right now :


This is not working with external flows but also with the same flow I just exported from that node red device.
Has anyone ever had this problem ?
Does someone has an idea to fix that ?

Working on Node RED 4.0.8 and node js 23.5.0.

Thanks

What browser (inc version) are you using?

Could this be a node 23 issue?

@colin no. The error is being shown in the Import Flow dialog - that is entirely browser side.

I am currently working on Microsoft Edge Version 84.0.522.52

That is almost 5 years old and does not support modern JS features (oh, and likely has many serious CVE exploits)

You are right, this is a browser issue. It works well on Firefox.
Thanks a lot, that already made me lost a couple of hours...

Odd numbered Node version are not explicitly supported or tested by Node-RED. You may encounter issues with contrib nodes and node-red itself. The recommendation is to use an even numbered LTS (long term support) version.

Major Node.js versions enter Current release status for six months, which gives library authors time to add support for them. After six months, odd-numbered releases (9, 11, etc.) become unsupported, and even-numbered releases (10, 12, etc.) move to Active LTS status and are ready for general use. LTS release status is "long-term support", which typically guarantees that critical bugs will be fixed for a total of 30 months. Production applications should only use Active LTS or Maintenance LTS releases.