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

**URL:** <https://discourse.nodered.org/t/typeerror-object-hasown-is-not-a-function-unable-to-import-flow/94772>\
**Category:** General\
**Tags:** importexport\
**Created:** [21 January 2025 08:49 UTC](https://discourse.nodered.org/t/typeerror-object-hasown-is-not-a-function-unable-to-import-flow/94772 "2025-01-21T08:49:24Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![MLFR\_IOT](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@MLFR\_IOT](https://discourse.nodered.org/u/MLFR_IOT)\
**Post date:** [21 January 2025 08:49 UTC](https://discourse.nodered.org/t/typeerror-object-hasown-is-not-a-function-unable-to-import-flow/94772/1 "2025-01-21T08:49:24Z")

</div>

Hello everyone,

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

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/8/080be59e33cea9007fd7dd2d92c6f7bcc7aecccd.png)  
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

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [21 January 2025 09:08 UTC](https://discourse.nodered.org/t/typeerror-object-hasown-is-not-a-function-unable-to-import-flow/94772/2 "2025-01-21T09:08:14Z")

</div>

What browser (inc version) are you using?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [21 January 2025 09:12 UTC](https://discourse.nodered.org/t/typeerror-object-hasown-is-not-a-function-unable-to-import-flow/94772/3 "2025-01-21T09:12:48Z")

</div>

Could this be a node 23 issue?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [21 January 2025 09:13 UTC](https://discourse.nodered.org/t/typeerror-object-hasown-is-not-a-function-unable-to-import-flow/94772/4 "2025-01-21T09:13:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![MLFR\_IOT](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@MLFR\_IOT](https://discourse.nodered.org/u/MLFR_IOT)\
**Post date:** [21 January 2025 09:28 UTC](https://discourse.nodered.org/t/typeerror-object-hasown-is-not-a-function-unable-to-import-flow/94772/5 "2025-01-21T09:28:33Z")

</div>

I am currently working on Microsoft Edge Version 84.0.522.52

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [21 January 2025 09:31 UTC](https://discourse.nodered.org/t/typeerror-object-hasown-is-not-a-function-unable-to-import-flow/94772/6 "2025-01-21T09:31:27Z")

</div>

> [@MLFR\_IOT](#):
>
> 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)

---

<div class="post-metadata">

**Author:** ![MLFR\_IOT](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@MLFR\_IOT](https://discourse.nodered.org/u/MLFR_IOT)\
**Post date:** [21 January 2025 09:32 UTC](https://discourse.nodered.org/t/typeerror-object-hasown-is-not-a-function-unable-to-import-flow/94772/7 "2025-01-21T09:32:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [21 January 2025 09:43 UTC](https://discourse.nodered.org/t/typeerror-object-hasown-is-not-a-function-unable-to-import-flow/94772/8 "2025-01-21T09:43:35Z")

</div>

> [@MLFR\_IOT](#):
>
> node js 23.5.0.

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.

> **[Node.js — Node.js Releases](https://nodejs.org/en/about/previous-releases)**
>
> Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [21 April 2025 09:44 UTC](https://discourse.nodered.org/t/typeerror-object-hasown-is-not-a-function-unable-to-import-flow/94772/9 "2025-04-21T09:44:34Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
