# TypeError: Cannot set properties of undefined (setting 'mode')

**URL:** <https://discourse.nodered.org/t/typeerror-cannot-set-properties-of-undefined-setting-mode/71345>\
**Category:** General\
**Created:** [28 November 2022 01:40 UTC](https://discourse.nodered.org/t/typeerror-cannot-set-properties-of-undefined-setting-mode/71345 "2022-11-28T01:40:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [28 November 2022 10:41 UTC](https://discourse.nodered.org/t/typeerror-cannot-set-properties-of-undefined-setting-mode/71345/2 "2022-11-28T10:41:25Z")

</div>

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote `````)

````auto
``` 
   code goes here 
```

````

You can edit and correct your post by clicking the pencil ✏ icon.

See this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

---

_[View the full topic](https://discourse.nodered.org/t/typeerror-cannot-set-properties-of-undefined-setting-mode/71345)._
