# Error loading node-red

**URL:** <https://discourse.nodered.org/t/error-loading-node-red/47219>\
**Category:** General\
**Created:** [16 June 2021 06:40 UTC](https://discourse.nodered.org/t/error-loading-node-red/47219 "2021-06-16T06:40:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [16 June 2021 06:47 UTC](https://discourse.nodered.org/t/error-loading-node-red/47219/2 "2021-06-16T06:47:32Z")

</div>

If you added the debug lines as Nick suggested...

> [@Windows 10 \[error\] Failed to start server: \[error\] TypeError: Cannot read property](https://discourse.nodered.org/t/windows-10-error-failed-to-start-server-error-typeerror-cannot-read-property/18600/8):
>
> Please add the following immediately before it:
> 
> ```auto
> // START DEBUG
> if (!set.types) {
> console.log("Module:",module.name);
> console.log("Path:",module.path);
> console.log("Set:",setName);
> }
> // END DEBUG
> set.types.forEach(function(t) {
> if (nodeTypeToId.hasOwnProperty(t)) {
> 
> ```
> 
> The next time you restart Node-RED you'll get a bit more information in the log about what node module its loading when it hits the error

... what was the reason for adding those?

What error were you getting that prompted you add these debug lines?

---

_[View the full topic](https://discourse.nodered.org/t/error-loading-node-red/47219)._
