export.pdf()/png() does not work.

Currently, I am using diagram 4.2.0 version, and an error occurs when calling diagram.export.pdf()/png(). Please check quickly.

Could you please, recheck, as the following example seem to work for me:
https://snippet.dhtmlx.com/7irm3bni
If the problem still occurs for you please, provide a complete demo, where the problem can be reconstructed.