Bpmn in angular node template map issue

i m using angular 7 to create the bpmn diagrams in go js i have an issue in adding templates to mapScreenshot%20from%202019-05-28%2014-26-26


it says it expects only one argument instead of 2

What version of GoJS are you using? That changed in version 2.0. But we changed the BPMN sample at that time also. See GoJS/BPMNScript.ts at master · NorthwoodsSoftware/GoJS · GitHub