Hi, we recently implemented the PDF Export server and would like to use it but we encounter an error on the client side.
In order to test the feature we added the following config to the scheduler instance:
pdfExportFeature: {
exportServer: 'http://<...export server address...>/'
}
and a function to trigger export:
onPrintPdf = (schedulerInstance) => {
schedulerInstance.features.pdfExport.export({
// Required, set list of column ids to export
columns : schedulerInstance.columns.map(c => c.id)
}).then(result => {
// Response instance and response content in JSON
let { response } = result;
});
}
but we receive the following error in the client:
scheduler.module.js?66cd:177862 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'events')
at eval (scheduler.module.js?66cd:177862:1)
at Array.forEach (<anonymous>)
at SinglePageExporter.collectEvents (scheduler.module.js?66cd:177856:1)
at SinglePageExporter.onRowsCollected (scheduler.module.js?66cd:177674:1)
at async SinglePageExporter.pagesExtractor (scheduler.module.js?66cd:106164:1)
at async SinglePageExporter.getPages (scheduler.module.js?66cd:104926:1)
at async SinglePageExporter.export (scheduler.module.js?66cd:104907:1)
at async PdfExport.export (scheduler.module.js?66cd:106756:1)
how can we resolve this issue?