Error: Trying to set undefined property "0" on object: Node#1260

I don’t get any such error. Can you reproduce this issue for me, perhaps on a codepen?

You can fork this to start.