I am migrating from vega 2.x to 5.13.0 version. I am trying to generate chart SVG, so I can use as per my requirement. For that I am using toSVG(). While using that either success or catch method both are not firing.
      var view = new vega.View(vega.parse(chartJson), {renderer: 'none'});
      view.toSVG().then(function (svg) {
        console.log(svg)
      }).catch(function(err){
        console.log(err)
      });