var exporter = Ext.Factory.exporter({ ...
exporter.saveAs().then( function() { exporter.destroy(); } );

https://docs-devel.sencha.com/extjs/...rter.Base.html

gives error
Ext.Factory.exporter is not a function

app.json

"requires": [
"font-awesome",
"pivot",
"exporter"
],

package.json

"@sencha/ext-exporter": "^7.1.0",