# Node-red-contrib-rfxcom not working under nodered2

**URL:** https://discourse.nodered.org/t/node-red-contrib-rfxcom-not-working-under-nodered2/48809
**Category:** General
**Created:** [23 July 2021 09:53 UTC](https://discourse.nodered.org/t/node-red-contrib-rfxcom-not-working-under-nodered2/48809 "2021-07-23T09:53:22Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![pensionado](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pensionado/32/10691_2.png) [@pensionado](https://discourse.nodered.org/u/pensionado)
#### Post date: [23 July 2021 09:53 UTC](https://discourse.nodered.org/t/node-red-contrib-rfxcom-not-working-under-nodered2/48809/1 "2021-07-23T09:53:22Z")

</div>

After upgrading my nodered image to the latest version I ended up with nodered 2.0.1 and my flow using rfxcom was no longer working. Looking in the logs I see the following:

""  
Jul 22 13:59:13 dirksehome3 docker/nodered[876]: 22 Jul 11:59:13 - [info] Node-RED version: v2.0.1  
Jul 22 13:59:13 dirksehome3 docker/nodered[876]: 22 Jul 11:59:13 - [info] Node.js version: v14.17.3  
Jul 22 13:59:13 dirksehome3 docker/nodered[876]: 22 Jul 11:59:13 - [info] Linux 5.10.0-7-amd64 x64 LE  
Jul 22 13:59:13 dirksehome3 docker/nodered[876]: 22 Jul 11:59:13 - [info] Loading palette nodes  
Jul 22 13:59:14 dirksehome3 docker/nodered[876]: 22 Jul 11:59:14 - [warn] ------------------------------------------------------  
Jul 22 13:59:14 dirksehome3 docker/nodered[876]: 22 Jul 11:59:14 - [warn] [node-red-contrib-rfxcom/rfxcom] Error: Error relocating /data/node\_modules/@serialport/bindings/build/Release/bindings.node: \_ZN2v820EscapableHandleScope6EscapeEPPNS\_8internal6ObjectE: symbol not found  
Jul 22 13:59:14 dirksehome3 docker/nodered[876]: 22 Jul 11:59:14 - [warn] ------------------------------------------------------  
Jul 22 13:59:14 dirksehome3 docker/nodered[876]: 22 Jul 11:59:14 - [warn] Missing node modules:  
Jul 22 13:59:14 dirksehome3 docker/nodered[876]: 22 Jul 11:59:14 - [warn] - node-red-node-rbe (0.5.0): rbe  
Jul 22 13:59:14 dirksehome3 docker/nodered[876]: 22 Jul 11:59:14 - [warn] - node-red-node-tail (0.3.1): tail  
Jul 22 13:59:14 dirksehome3 docker/nodered[876]: 22 Jul 11:59:14 - [info] Removing modules from config  
"

I am not sure if this a bug or a carryover problem from the nodered 1 version. Backed my docker image out to latest-10 and it worker again. Can anybody tell me if this is a bug or a carryover problem.

---

<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: [23 July 2021 10:20 UTC](https://discourse.nodered.org/t/node-red-contrib-rfxcom-not-working-under-nodered2/48809/2 "2021-07-23T10:20:58Z")

</div>

The default docker image for Node-RED 2.x uses Node 14. The previous docker image used Node 10. You will need to reinstall or rebuild the rxfcomm node in order to get the serialport node's binary components rebuilt for the newer version of node.

---

<div class="post-metadata">

### Author: ![pensionado](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pensionado/32/10691_2.png) [@pensionado](https://discourse.nodered.org/u/pensionado)
#### Post date: [23 July 2021 11:10 UTC](https://discourse.nodered.org/t/node-red-contrib-rfxcom-not-working-under-nodered2/48809/3 "2021-07-23T11:10:34Z")

</div>

Thanks, I will give that a whirl and report back.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [23 July 2021 19:16 UTC](https://discourse.nodered.org/t/node-red-contrib-rfxcom-not-working-under-nodered2/48809/4 "2021-07-23T19:16:45Z")

</div>

Worth noting that something is triggering a warning in Node-RED. Took me a while to realise this was rfxcom. It relates to the underlying library and there is an issue raised there.

```auto
(node:16376) Warning: Accessing non-existent property 'AsyncConfig' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:16376) Warning: Accessing non-existent property 'AsyncData' of module exports inside circular dependency

```

With node.js trace turned on, you get:

```auto
(node:13050) Warning: Accessing non-existent property 'AsyncConfig' of module exports inside circular dependency
    at emitCircularRequireWarning (internal/modules/cjs/loader.js:675:11)
    at Object.get (internal/modules/cjs/loader.js:689:5)
    at Object.<anonymous> (/home/home/nrmain/data/node_modules/rfxcom/lib/index.js:337:43)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:14)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:92:18)
    at Object.<anonymous> (/home/home/nrmain/data/node_modules/rfxcom/index.js:1:18)
(node:13050) Warning: Accessing non-existent property 'AsyncData' of module exports inside circular dependency
    at emitCircularRequireWarning (internal/modules/cjs/loader.js:675:11)
    at Object.get (internal/modules/cjs/loader.js:689:5)
    at Object.<anonymous> (/home/home/nrmain/data/node_modules/rfxcom/lib/index.js:342:41)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:14)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:92:18)
    at Object.<anonymous> (/home/home/nrmain/data/node_modules/rfxcom/index.js:1:18)

```

It doesn't stop anything from working & it isn't related to Node-RED v2 at all.

---

<div class="post-metadata">

### Author: ![maxwellhadley](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maxwellhadley/32/7827_2.png) [@maxwellhadley](https://discourse.nodered.org/u/maxwellhadley)
#### Post date: [23 July 2021 20:31 UTC](https://discourse.nodered.org/t/node-red-contrib-rfxcom-not-working-under-nodered2/48809/5 "2021-07-23T20:31:33Z")

</div>

Hmm - I thought I’d fixed that one? It’s possible I didn’t get round to publishing it though. I can confirm it’s not NR2 related: I haven’t had time to touch rfxcom in months ☹

---

<div class="post-metadata">

### Author: ![pensionado](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pensionado/32/10691_2.png) [@pensionado](https://discourse.nodered.org/u/pensionado)
#### Post date: [24 July 2021 08:46 UTC](https://discourse.nodered.org/t/node-red-contrib-rfxcom-not-working-under-nodered2/48809/6 "2021-07-24T08:46:09Z")

</div>

OK, after recreating the nodered container (with latest, so nodered2) without the flows using rfxcom, and manual install node-red-contrib-rfxcom followed by import of the flows using rfxcom, everything works under nodered2. So it was a carry-over problem from nodered 1. Its is running happily on nodered2 now.

---

<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: [22 September 2021 08:46 UTC](https://discourse.nodered.org/t/node-red-contrib-rfxcom-not-working-under-nodered2/48809/7 "2021-09-22T08:46:18Z")

</div>

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