Getting error on configuring DHTMLX Diagram Control in Angular 9

Hi I am using DHTMLX Trial period license, and I want to use DHTMLX diagram control in my angular 9 application.
I copied “codebase” folder to my angular applications “src” folder, from the downloaded “diagram_trial” folder.
And then I put below two lines in my index.html file

But then I get below attached error .
Please help.

Could you please, provide a complete demo, where the problem could be reconstructed.

Hi @sematik,
Thanks for quick reply.
I was able to resolve that error. But now I am getting another error which I put below .
This error comes when I am calling
diagram.export.pdf();

some times it redirects to https://export.dhtmlx.ru/diagram/pdf/3.0.3 and display “request entity too large”

Could you please, provide a complete demo or a demo link, where the problem could be tested locally.