Hi Smart HTML Elments Support Team,
I hope this message finds you well.
I’m reaching out to you regarding an issue I’ve encountered while utilizing the exportData feature in the smart-webcomponents-react library for implementing a Gantt Chart in my project.
Upon invoking the exportData method, I encountered the error message: “smart-gantt-chart: Missing reference to jszip.min.js in method exportData.”
While attempting to troubleshoot this issue, I came across two forum discussions on your platform that seemed related, but unfortunately did not provide a solution to my problem:
- Error on XLSX export
- Missing reference to jszip.min.js
Despite reviewing these discussions, I’m still facing difficulties in resolving the error. Below is the code snippet I’m using:
//————————————————//
const ganttChartRef = useRef<any>(null);
const handleExport = () => {
const ganttChart = ganttChartRef?.current;
ganttChart.exportData(‘pdf’);
}
<GanttChart ref={ganttChartRef} />
//————————————————//
Could you please provide further assistance or guidance on how to address this issue? Any additional insights or recommendations would be greatly appreciated.
Thank you for your attention to this matter. I’m looking forward to your prompt assistance.
Best regards,
Shubham