I am trying to implement an application where a graph will be generated by y files on the server side and the user shall be able to download it as a pdf. I am using angular universal for this. The application is working on the browser that is the graph is being rendered at the browser, but not on the server side. On the server side I am getting the following error
ERROR ReferenceError: SVGGElement is not defined
But if I initialize "SVGGElement
" as following in my server.ts
global["SVGGElement"] = win.SVGGElement;
i get the following error
ERROR TypeError: Right-hand side of 'instanceof' is not an object
I know yfiles is not for server side rendering but it would be great if this can be accomplished.