Skip to content

Instantly share code, notes, and snippets.

@danfinlay
Created August 7, 2013 22:39
Show Gist options
  • Select an option

  • Save danfinlay/6179542 to your computer and use it in GitHub Desktop.

Select an option

Save danfinlay/6179542 to your computer and use it in GitHub Desktop.
When running this function requesting "voxel-hello-world" I'm getting a strange error: ReferenceError: Can't find variable: voxel This is both strange because
function fetchBundle(bundleName, preferredVersions, cb){
var er = sandbox.bundle(bundleName, null)
sandbox.on('bundleEnd', function(html){
//Just to test, this IS returning bundle HTML, so I seem to be calling sandbox.bundle() correctly.
})
sandbox.on('modules', function(packages){
//This event is never being thrown.
})
if(er){
console.log("Sandbox error: "+er) //This error never gets returned.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment