# ReferenceError: TextDecoder is not defined in SmartNora update

**URL:** <https://discourse.nodered.org/t/referenceerror-textdecoder-is-not-defined-in-smartnora-update/50857>\
**Category:** General\
**Created:** [10 September 2021 13:15 UTC](https://discourse.nodered.org/t/referenceerror-textdecoder-is-not-defined-in-smartnora-update/50857 "2021-09-10T13:15:18Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![nygma2004](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nygma2004/32/1308_2.png) [@nygma2004](https://discourse.nodered.org/u/nygma2004)\
**Post date:** [10 September 2021 13:15 UTC](https://discourse.nodered.org/t/referenceerror-textdecoder-is-not-defined-in-smartnora-update/50857/1 "2021-09-10T13:15:18Z")

</div>

Hi All,

I was updating my nodes in the palette manager, and amongs others, I updated Smartnora to 1.4.1 (if I remember correctly)  
After restarting node-red, I found this in the log:

> 10 Sep 15:04:58 - [warn] [node-red-contrib-smartnora/noraf-async] ReferenceError: TextDecoder is not defined

Now my nodes are not running. Could this be because I did not upgrade to NR 2.0? I am still at 1.1.3.

Linking @andrei-tatar in case he is aware of this issue.

Thanks,  
Csongor

---

<div class="post-metadata">

**Author:** ![nygma2004](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nygma2004/32/1308_2.png) [@nygma2004](https://discourse.nodered.org/u/nygma2004)\
**Post date:** [10 September 2021 13:15 UTC](https://discourse.nodered.org/t/referenceerror-textdecoder-is-not-defined-in-smartnora-update/50857/2 "2021-09-10T13:15:49Z")

</div>

I am on:

```auto
10 Sep 15:04:45 - [info] Node-RED version: v1.1.3
10 Sep 15:04:45 - [info] Node.js version: v10.22.0
10 Sep 15:04:45 - [info] Linux 4.9.35-v7+ arm LE

```

---

<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:** [10 September 2021 13:18 UTC](https://discourse.nodered.org/t/referenceerror-textdecoder-is-not-defined-in-smartnora-update/50857/3 "2021-09-10T13:18:01Z")

</div>

TextDecoder requires nodejs V12 or above.

Id recommend v14 or even 16 if you're going to upgrade.

---

<div class="post-metadata">

**Author:** ![nygma2004](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nygma2004/32/1308_2.png) [@nygma2004](https://discourse.nodered.org/u/nygma2004)\
**Post date:** [10 September 2021 13:18 UTC](https://discourse.nodered.org/t/referenceerror-textdecoder-is-not-defined-in-smartnora-update/50857/4 "2021-09-10T13:18:57Z")

</div>

Thanks for a quick note. Let me try downgrading back to an earlier version, server upgrade is planned in a few weeks anyway.

---

<div class="post-metadata">

**Author:** ![andrei-tatar](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei-tatar/32/3780_2.png) [@andrei-tatar](https://discourse.nodered.org/u/andrei-tatar)\
**Post date:** [10 September 2021 13:31 UTC](https://discourse.nodered.org/t/referenceerror-textdecoder-is-not-defined-in-smartnora-update/50857/5 "2021-09-10T13:31:26Z")

</div>

Interesting. I wasn't aware of this issue, but I do run node LTS on all my machines.  
TextDecoder is not a direct dependency of nora, but probably one of the packages (probably firebase or cbor) needs it. I can have a look

---

<div class="post-metadata">

**Author:** ![nygma2004](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nygma2004/32/1308_2.png) [@nygma2004](https://discourse.nodered.org/u/nygma2004)\
**Post date:** [10 September 2021 13:33 UTC](https://discourse.nodered.org/t/referenceerror-textdecoder-is-not-defined-in-smartnora-update/50857/6 "2021-09-10T13:33:47Z")

</div>

I downgraded back to 1.0.3 and it is working again. I am waiting for a NUC to be available (chip shortage?) I will install the latest version there.

---

<div class="post-metadata">

**Author:** ![andrei-tatar](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei-tatar/32/3780_2.png) [@andrei-tatar](https://discourse.nodered.org/u/andrei-tatar)\
**Post date:** [10 September 2021 13:43 UTC](https://discourse.nodered.org/t/referenceerror-textdecoder-is-not-defined-in-smartnora-update/50857/7 "2021-09-10T13:43:14Z")

</div>

OK. I checked and latest version of cbor has a minimum required node version of `12.19`. I will also add this to the nora package...

---

<div class="post-metadata">

**Author:** ![nygma2004](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nygma2004/32/1308_2.png) [@nygma2004](https://discourse.nodered.org/u/nygma2004)\
**Post date:** [10 September 2021 13:44 UTC](https://discourse.nodered.org/t/referenceerror-textdecoder-is-not-defined-in-smartnora-update/50857/8 "2021-09-10T13:44:24Z")

</div>

Can you also add to the release notes? I checked that as well, but it was not mentioned there.

---

<div class="post-metadata">

**Author:** ![andrei-tatar](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei-tatar/32/3780_2.png) [@andrei-tatar](https://discourse.nodered.org/u/andrei-tatar)\
**Post date:** [10 September 2021 13:45 UTC](https://discourse.nodered.org/t/referenceerror-textdecoder-is-not-defined-in-smartnora-update/50857/9 "2021-09-10T13:45:41Z")

</div>

Yup, will do!

---

<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:** [24 September 2021 13:46 UTC](https://discourse.nodered.org/t/referenceerror-textdecoder-is-not-defined-in-smartnora-update/50857/10 "2021-09-24T13:46:37Z")

</div>

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