When specify customElementTemplate as Object, template load mechanism is not handling Object. It takes template as function or array.
reload debug
setTemplates:
setTemplate is throw error. Is it not the valid templates, validTemplates is empty array. Screenshot below.
When debug the camunda-modeler the loadTemplate is a function. It fetch from the resource/element-template/*.json folder.
Is there anything Am I missing here. I used the same element template (EmailTask.json) works fine in camunda-modeler but not in bpmn-js moddle.