# Can someone help me with this type error please?

**URL:** <https://discourse.nodered.org/t/can-someone-help-me-with-this-type-error-please/42900>\
**Category:** Developing Nodes\
**Created:** [19 March 2021 19:48 UTC](https://discourse.nodered.org/t/can-someone-help-me-with-this-type-error-please/42900 "2021-03-19T19:48:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jas](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@jas](https://discourse.nodered.org/u/jas)\
**Post date:** [19 March 2021 19:48 UTC](https://discourse.nodered.org/t/can-someone-help-me-with-this-type-error-please/42900/1 "2021-03-19T19:48:47Z")

</div>

Hi everyone,  
I got an type error Cannot read property 'forEach' of undefined when I run my node. Can someone give me some advice please?  
Thank you!  
Best,  
Jas

---

<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:** [19 March 2021 19:59 UTC](https://discourse.nodered.org/t/can-someone-help-me-with-this-type-error-please/42900/2 "2021-03-19T19:59:40Z")

</div>

Hi @jas

Can you provide more details, such as the full error message and the stack trace from the log?

---

<div class="post-metadata">

**Author:** ![jas](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@jas](https://discourse.nodered.org/u/jas)\
**Post date:** [19 March 2021 20:12 UTC](https://discourse.nodered.org/t/can-someone-help-me-with-this-type-error-please/42900/3 "2021-03-19T20:12:19Z")

</div>

Hi, here is a screen shot of my command prompt.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/b/7be2651a7f997cfbd00eb676a669eb53795db50f.png)  
Thank you!!!

---

<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:** [19 March 2021 20:50 UTC](https://discourse.nodered.org/t/can-someone-help-me-with-this-type-error-please/42900/4 "2021-03-19T20:50:15Z")

</div>

Are you developing your own node here? That error can be caused if you have a node that's missing its .html file.

---

<div class="post-metadata">

**Author:** ![jas](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@jas](https://discourse.nodered.org/u/jas)\
**Post date:** [20 March 2021 00:31 UTC](https://discourse.nodered.org/t/can-someone-help-me-with-this-type-error-please/42900/5 "2021-03-20T00:31:19Z")

</div>

yes. I'm making a new node. But I have the html in the file folder.

---

<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:** [20 March 2021 07:43 UTC](https://discourse.nodered.org/t/can-someone-help-me-with-this-type-error-please/42900/6 "2021-03-20T07:43:34Z")

</div>

Point us to the GitHub repository where the node is.  
If you haven't set that up yet then do it. You can always delete it again later if you discard the node.

---

<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:** [19 May 2021 07:44 UTC](https://discourse.nodered.org/t/can-someone-help-me-with-this-type-error-please/42900/7 "2021-05-19T07:44:15Z")

</div>

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