Posted 26 November 2024, 8:20 pm EST - Updated 26 November 2024, 8:21 pm EST
Error When Generating PDF Reports in Node.js with ActiveReportsJS
Dear ActiveReportsJS Support Team,
I am encountering an issue when generating PDF reports using ActiveReportsJS in a Node.js environment. Specifically, I receive a “Maximum call stack size exceeded” error during the PDF generation process. However, when running the report viewer within a React application, the report renders and generates the PDF without any issues.
**Steps to Reproduce:
**1/ Install Dependencies:
- Run
to install all necessary packages.npm install
- Install Playwright by executing
.npx playwright install
2/ Initialize the Application:
Execute
node .\init.js
to set up the application.
**3/ Generate the Report:
- Make a POST request to the Node.js service responsible for generating the report.
Observations:
The error occurs exclusively during the PDF generation phase in the Node.js environment.
The same report renders and generates the PDF correctly when using the React application.
Request for Assistance:
Could you please provide guidance on the following:
1/ Potential causes of the “Maximum call stack size exceeded” error during PDF generation in Node.js.
2/ Recommended solutions or workarounds to resolve this issue.
3/ Any specific configurations or settings required for PDF generation in a Node.js environment using ActiveReportsJS.
I have attached the relevant code snippets and configuration files for your reference. Your assistance in resolving this issue would be greatly appreciated.
Thank you for your support.
Best regards,active-reportjs-demo 1.zip