Posted 12 June 2025, 6:07 am EST
Hi Team,
We have integrated Angular 18 with Server-Side Rendering (SSR) using Angular Universal. However, when we try to run the application using the SSR build, we are encountering the following error:
/Users/shubhamchhapre/Documents/GitHub/zx-report-UI/dist/zx-report/server/vendor.js:678916
window.arjsViewer = window.arjsViewer || {};
^
ReferenceError: window is not defined
It appears that the library is trying to access the window object, which is not available in a Node.js environment during SSR.
Could you please provide guidance on how to use ActiveReportsJS in an Angular SSR setup, or suggest a workaround to prevent this error?
Looking forward to your support on this issue.
Thank you