max-mapper/voxel-engine

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

Opened this issue · 1 comments

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?

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