typeof(scenegraph.SceneNode) is undefined

Here’s what I’m talking about Serialize scenegraph data to JSON?