# Waiting for missing types to be registered - node-red-node-email

**URL:** <https://discourse.nodered.org/t/waiting-for-missing-types-to-be-registered-node-red-node-email/72636>\
**Category:** General\
**Created:** [23 December 2022 14:58 UTC](https://discourse.nodered.org/t/waiting-for-missing-types-to-be-registered-node-red-node-email/72636 "2022-12-23T14:58:17Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmtkelly](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jmtkelly](https://discourse.nodered.org/u/jmtkelly)\
**Post date:** [23 December 2022 14:58 UTC](https://discourse.nodered.org/t/waiting-for-missing-types-to-be-registered-node-red-node-email/72636/1 "2022-12-23T14:58:17Z")

</div>

I am having problems trying to use the node-red-node-email node. I use the palette manager to download the latest version. The installation process is successful however the nodes do not show up in the node-red left-hand panel. When I look in the palette, I see that there is a yellow exclamation mark beside the node-red-node-email with the text "[object Object]" beside it. After reading many articles, I found that there might be more info on the error when I start node-red from the prompt. I launched node-red from the terminal and the message "Waiting for missing types to be registered: - e-mail (provided by npm module node-red-node-email)". I searched for the "waiting for missing types to be registered" message but most of the articles had to do with code bugs when individuals were authoring their own nodes. I would not imagine that there are code issues with node-red-node-email or it would have been reported by now. I checked to ensure that I have all the necessary prerequisites for this modules which I do.

---

<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:** [23 December 2022 22:13 UTC](https://discourse.nodered.org/t/waiting-for-missing-types-to-be-registered-node-red-node-email/72636/2 "2022-12-23T22:13:39Z")

</div>

Welcome to the forum @jmtkelly

Go into your .node-red folder (or wherever you flows file is located if it is not a normal node-red install) and run  
`npm remove node-red-node-email`  
`npm install node-red-node-email`  
and copy/paste the full output here please, including the line showing the commands.

---

<div class="post-metadata">

**Author:** ![jmtkelly](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jmtkelly](https://discourse.nodered.org/u/jmtkelly)\
**Post date:** [23 December 2022 23:28 UTC](https://discourse.nodered.org/t/waiting-for-missing-types-to-be-registered-node-red-node-email/72636/3 "2022-12-23T23:28:35Z")

</div>

> [@Colin](#):
>
> npm install node-red-node-email

Colin,

Thanks for the help. See below for details:

**This is the remote results:**

root@iot2050-debian:~/.node-red# npm remove node-red-node-email

removed 39 packages, and audited 974 packages in 28s

71 packages are looking for funding  
run `npm fund` for details

32 vulnerabilities (7 moderate, 21 high, 4 critical)

To address issues that do not require attention, run:  
npm audit fix

To address all issues possible (including breaking changes), run:  
npm audit fix --force

Some issues need review, and may require choosing  
a different dependency.

Run `npm audit` for details.  
root@iot2050-debian:~/.node-red#

**This is the install results:**

root@iot2050-debian:~/.node-red# npm install node-red-node-email

added 1 package, and audited 1013 packages in 24s

82 packages are looking for funding  
run `npm fund` for details

32 vulnerabilities (7 moderate, 21 high, 4 critical)

To address issues that do not require attention, run:  
npm audit fix

To address all issues possible (including breaking changes), run:  
npm audit fix --force

Some issues need review, and may require choosing  
a different dependency.

Run `npm audit` for details.  
root@iot2050-debian:~/.node-red#

**When I run node-red again at the command prompt here is what I get:**

root@iot2050-debian:~/.node-red# node-red  
23 Dec 23:26:44 - [info]

# Welcome to Node-RED

23 Dec 23:26:44 - [info] Node-RED version: v2.0.6  
23 Dec 23:26:44 - [info] Node.js version: v12.22.5  
23 Dec 23:26:44 - [info] Linux 5.10.64 arm64 LE  
23 Dec 23:26:47 - [info] Loading palette nodes  
23 Dec 23:27:5 - [s7comm-Error] - Installation of Module net-keepalive failed because we might be on the wrong OS. OS=linux  
23 Dec 23:27:5 - [s7comm-Info] - Debug configuration for logLevelNodeS7:{"debug":0,"silent":true}  
23 Dec 23:27:5 - [s7comm-Info] - Debug configuration for logLevelNodeRED:{"debug":2,"silent":true}  
23 Dec 23:27:06 - [info] Dashboard version 2.30.0 started at /ui  
23 Dec 23:27:07 - [warn] ------------------------------------------------------  
23 Dec 23:27:07 - [warn] [node-red-node-email/email] SyntaxError: Unexpected token '?'  
23 Dec 23:27:07 - [warn] ------------------------------------------------------  
23 Dec 23:27:07 - [info] Settings file : /root/.node-red/settings.js  
23 Dec 23:27:07 - [info] Context store : 'default' [module=memory]  
23 Dec 23:27:07 - [info] User directory : /root/.node-red  
23 Dec 23:27:07 - [warn] Projects disabled : editorTheme.projects.enabled=false  
23 Dec 23:27:07 - [info] Flows file : /root/.node-red/flows.json  
23 Dec 23:27:08 - [info] Server now running at [http://127.0.0.1:1880/](http://127.0.0.1:1880/)  
23 Dec 23:27:08 - [info] Starting flows  
23 Dec 23:27:08 - [info] Started flows

**When I look at the palette in node-red via my browser, I have a yellow exclamation mark next to the node-red-node-email still.**

---

<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:** [23 December 2022 23:48 UTC](https://discourse.nodered.org/t/waiting-for-missing-types-to-be-registered-node-red-node-email/72636/4 "2022-12-23T23:48:57Z")

</div>

> [@jmtkelly](#):
>
> [warn] [node-red-node-email/email] SyntaxError: Unexpected token '?'

This looks like there is [optional chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining) in the email node which requires modejs v14 or greater.

Your device has nodejs V12

Maybe @dceejay can confirm?

---

<div class="post-metadata">

**Author:** ![jmtkelly](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jmtkelly](https://discourse.nodered.org/u/jmtkelly)\
**Post date:** [24 December 2022 13:25 UTC](https://discourse.nodered.org/t/waiting-for-missing-types-to-be-registered-node-red-node-email/72636/5 "2022-12-24T13:25:55Z")

</div>

Steve,

The README.md file in the ~.node-red/node-modules/node-red-node-email/ directory states that

**"Note : Version 1.x of this node requires Node.js v8 or newer."**

I am running node 12.22.5

If you feel that an upgrade is required then I can try that however I've had mixed results in the past updating node.js whereas other things seem to get broken.

Please advise.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [24 December 2022 13:38 UTC](https://discourse.nodered.org/t/waiting-for-missing-types-to-be-registered-node-red-node-email/72636/6 "2022-12-24T13:38:55Z")

</div>

I’ll try to check the code later today but hey Xmas eve and all that. You can install a previous version of the node if you like but right now I can’t tell you which version broke with node 12.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [24 December 2022 14:10 UTC](https://discourse.nodered.org/t/waiting-for-missing-types-to-be-registered-node-red-node-email/72636/7 "2022-12-24T14:10:01Z")

</div>

OK - hopefully just the mailparser - now pinned back in version 1.18.4

---

<div class="post-metadata">

**Author:** ![jmtkelly](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jmtkelly](https://discourse.nodered.org/u/jmtkelly)\
**Post date:** [24 December 2022 14:47 UTC](https://discourse.nodered.org/t/waiting-for-missing-types-to-be-registered-node-red-node-email/72636/8 "2022-12-24T14:47:30Z")

</div>

Thanks! That seemed to have resolved the issue. I am new to node-red and, as I am trying to learn more, was wondering if you could explain to me what exactly the issue was here.

**Thanks again for the Christmas Eve Fix!**

---

<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:** [24 December 2022 15:08 UTC](https://discourse.nodered.org/t/waiting-for-missing-types-to-be-registered-node-red-node-email/72636/9 "2022-12-24T15:08:44Z")

</div>

The issue was, I believe, the the javascript language is still evolving. Nodejs 14 (which contains the code that understands the javascript) included support for some new features in the language. Unfortunately an update to the email node used some of the new javascript syntax that was not available in nodejs 12. Therefore the version of the email node did not work with nodejs 12. I assume that Dave has modifed that code so that it does not use the new feature.

The current version of node red (3.x) require nodejs14 or above so developers are now used to using the new features, which is probably how it accidentally got used in the email node.

---

<div class="post-metadata">

**Author:** ![jmtkelly](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jmtkelly](https://discourse.nodered.org/u/jmtkelly)\
**Post date:** [24 December 2022 15:21 UTC](https://discourse.nodered.org/t/waiting-for-missing-types-to-be-registered-node-red-node-email/72636/10 "2022-12-24T15:21:48Z")

</div>

Thanks for the explanation Colin. Much appreciated.

---

<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 February 2023 15:22 UTC](https://discourse.nodered.org/t/waiting-for-missing-types-to-be-registered-node-red-node-email/72636/11 "2023-02-22T15:22:47Z")

</div>

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