# Type Error Cannot read undefined

**URL:** <https://discourse.nodered.org/t/type-error-cannot-read-undefined/45232>\
**Category:** General\
**Created:** [5 May 2021 19:09 UTC](https://discourse.nodered.org/t/type-error-cannot-read-undefined/45232 "2021-05-05T19:09:15Z")\
**Posts on this page:** 1\
**Showing post:** 11

<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:** [6 May 2021 06:27 UTC](https://discourse.nodered.org/t/type-error-cannot-read-undefined/45232/11 "2021-05-06T06:27:11Z")

</div>

Hi, in order to make code more readable and importable it is important to surround your code with three backticks  
`````  
`like this`  
`````

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/type-error-cannot-read-undefined/45232)._
