max-mapper / voxel-engine

3D HTML5 voxel game engine
http://maxogden.github.com/voxel-engine
BSD 3-Clause "New" or "Revised" License
1.29k stars 220 forks source link

document.getElementById("game") is not a Node #137

Open RossComputerGuy opened 5 years ago

RossComputerGuy commented 5 years ago

I have a div with the game id and I run this.this.voxel.appendTo(document.getElementById("game")) but I'm getting an error saying that document.getElementById("game") is not a Node. How do I fix this?

RossComputerGuy commented 5 years ago

changing appendChild to append in the voxel-engine code then gets this error Uncaught TypeError: Cannot read property 'parentElement' of undefined