Closed Flubberwurm13 closed 3 years ago
Which example should we run?
Soory. Just forgot to add: https://github.com/camunda/camunda-modeler-plugins/tree/master/bpmn-js-plugin-moddle-extension-example
I can run the example without any issue on Camunda Modeler v4.4.0 given the steps to reproduce you provided.
It also validates correctly if a diagram with a wrong extension usage comes around the corner:
I changed the qa.json to this:
You understand that it is a waste of my time to open an issue like this, without pointing to your changes to lead to this bug?
To fix your issue, revise your extension, start small and see at which point it breaks.
Describe the Bug
[diagram_1.bpmn] Cannot read property 'traits' of undefined at traits (webpack:///node_modules/bpmn-moddle/node_modules/moddle/dist/index.esm.js:470:31) at iterator (webpack:///node_modules/min-dash/dist/index.esm.js:145:15) at type (webpack:///node_modules/bpmn-moddle/node_modules/moddle/dist/index.esm.js:467:10) at registerType (webpack:///node_modules/bpmn-moddle/node_modules/moddle/dist/index.esm.js:416:9) at iterator (webpack:///node_modules/min-dash/dist/index.esm.js:145:15) at pkg (webpack:///node_modules/bpmn-moddle/node_modules/moddle/dist/index.esm.js:415:10) at iterator (webpack:///node_modules/min-dash/dist/index.esm.js:145:15) at packages (webpack:///node_modules/bpmn-moddle/node_modules/moddle/dist/index.esm.js:391:10) at de.g (webpack:///node_modules/bpmn-moddle/node_modules/moddle/dist/index.esm.js:715:18) at call (webpack:///node_modules/bpmn-moddle/dist/index.esm.js:15:9) [ error ]
Steps to Reproduce
Environment