I had this problem. Since JavaScript does not have better error handling, I received this error message.
I used the following code:
var myArray = ['one','two', 'three']; for (var i = 0; i < 4; i++) { alert(myArray[i]); }
The problem was that myArray has three elements (with index id 0,1,2), and I tried to access the element with index id 3. The element myArray [3] does not exist , so I got the message "TypeError: Argument 1 from Node.appendChild is not an object. " Perhaps this is the solution to your problem.
source share