[SOLVED] jsZip generate seems to hang

I am using a meteorchef recipe to export some data

When I get to the section for generating the archive the script seems to not complete the generation of the archive…

let result = _generateZipArchive(archive);

let _generateZipArchive = (archive) => {
  return archive.generate({type: 'base64'});

I see the “Foo” part, but “Bar” is never printed.
Any suggestions?

generate appears to be deprecated,changed code to

return archive.generateAsync({type: 'base64'}).then(function(base64) { return base64; });