# TypeError: Cannot read property 'forEach' of undefined

**URL:** <https://discourse.nodered.org/t/typeerror-cannot-read-property-foreach-of-undefined/47953>\
**Category:** General\
**Created:** [2 July 2021 18:34 UTC](https://discourse.nodered.org/t/typeerror-cannot-read-property-foreach-of-undefined/47953 "2021-07-02T18:34:14Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![eeeeuk](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eeeeuk/32/46094_2.png) [@eeeeuk](https://discourse.nodered.org/u/eeeeuk)\
**Post date:** [5 August 2021 18:28 UTC](https://discourse.nodered.org/t/typeerror-cannot-read-property-foreach-of-undefined/47953/12 "2021-08-05T18:28:08Z")

</div>

ok... i fixed it. I added the debug that @knolleary had suggested in another post. [Error loading node-red - #2 by Steve-Mcl](https://discourse.nodered.org/t/error-loading-node-red/47219/2)

and it told me the following on start-up:

```auto
Path: C:\Users\<username>\.node-red\node_modules\node-red-contrib-amqp

```

I deleted that folder and everything in it... now starts up ok.

---

_[View the full topic](https://discourse.nodered.org/t/typeerror-cannot-read-property-foreach-of-undefined/47953)._
