# Type Error on dragging a node from the node palette on NR v0.20.6

**URL:** <https://discourse.nodered.org/t/type-error-on-dragging-a-node-from-the-node-palette-on-nr-v0-20-6/12822>\
**Category:** General\
**Created:** [2 July 2019 12:37 UTC](https://discourse.nodered.org/t/type-error-on-dragging-a-node-from-the-node-palette-on-nr-v0-20-6/12822 "2019-07-02T12:37:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbaba](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dbaba/32/6708_2.png) [@dbaba](https://discourse.nodered.org/u/dbaba)\
**Post date:** [2 July 2019 12:37 UTC](https://discourse.nodered.org/t/type-error-on-dragging-a-node-from-the-node-palette-on-nr-v0-20-6/12822/1 "2019-07-02T12:37:27Z")

</div>

I'm a contribution node developer. I received [an issue report](https://github.com/CANDY-LINE/node-red-contrib-lwm2m/issues/11) from my node users. They say as of NR v0.20.6, dragging a node ([node-red-contrib-lwm2m](https://flows.nodered.org/node/node-red-contrib-lwm2m) node) from the node palette didn't work properly.

So I looked into the issue and found a weird Type Error occurred when I was dragging the above node from the palette to the editor area on Node-RED v0.20.6.  
Browser said:

```auto
TypeError: undefined is not an object (evaluating '$("#"+e.target.id).offset().left')

```

The weird thing is the error was never thrown when I use the node from GitHub version of Node-RED v0.20.6. The NPM version of NR caused the error.

You can reproduce it with [node-red-contrib-lwm2m](https://flows.nodered.org/node/node-red-contrib-lwm2m) node, which I developed.

How can I resolve it?  
And, according to the user report, v0.20.5 did work fine without any errors so something changed in v0.20.6, I guess but don't have any idea of the resolution after reading the [release note](https://github.com/node-red/node-red/releases/tag/0.20.6).

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [2 July 2019 12:46 UTC](https://discourse.nodered.org/t/type-error-on-dragging-a-node-from-the-node-palette-on-nr-v0-20-6/12822/2 "2019-07-02T12:46:23Z")

</div>

I've seen two reports of this on the NR slack this week. @knolleary mentioned it will be fixed on 0.20.7, but seeing how the report never made it to this forum I'll add screenshots from the slack below.

 ![Image%20from%20iOS%20(12)](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/c/ced0d85473102fae581d97c4e5f07473a176a796.png) ![Image%20from%20iOS%20(13)](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/4/4dd2f486c67ec2511cec8777b741def15a0b6b44.png) ![Image%20from%20iOS%20(14)](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/c/c8fa506cd89810b8d8ed221b96c85298720b8c02.png) ![Image%20from%20iOS%20(15)](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/5/5de32b906a9613f4cd0cc2ca4d7119e5cb9a7166.png)  
So for future people searching for the post, here's what's going on.

---

<div class="post-metadata">

**Author:** ![dbaba](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dbaba/32/6708_2.png) [@dbaba](https://discourse.nodered.org/u/dbaba)\
**Post date:** [2 July 2019 12:51 UTC](https://discourse.nodered.org/t/type-error-on-dragging-a-node-from-the-node-palette-on-nr-v0-20-6/12822/3 "2019-07-02T12:51:35Z")

</div>

Thank you for the quick response. I missed the conversation.  
Will check the next release!
