Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RossComputerGuy opened this issue Nov 1, 2018 · 1 comment
Open

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

RossComputerGuy opened this issue Nov 1, 2018 · 1 comment

Comments

@RossComputerGuy
Copy link

RossComputerGuy commented Nov 1, 2018

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 RossComputerGuy changed the title document.getElementById("#game") is not a Node document.getElementById("game") is not a Node Nov 1, 2018
@RossComputerGuy
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant