Cannot read properties of undefined (reading 'isGeneric')

I create customized Tasks in VueJs depends of that example bpmn-js-example-custom-elements and i had that issue Cannot read properties of undefined (reading 'isGeneric') when i want to bpmn.saveXML() any solutions for that

Could you explain the steps to reproduce your issue in a structured and detailed manner? Thanks :heart:

For me it looks like miss-use trying to attach extensions to the BPMN 2.0 XML.

I had a problem similar to yours, The error occurs because there is no corresponding definition in moddle, I ended up using a custom moddle file to solve this problem, I don’t know if I can help you:

hello @mdichkou have you get any solution for

Cannot read properties of undefined (reading ‘isGeneric’)

You most likely want to use GitHub - bpmn-io/bpmn-js-example-custom-elements: An example of how to support custom elements in bpmn-js while ensuring BPMN 2.0 compatibility. to create custom elements. You shouldn’t run into this issue then.