I recently updated my bpmn-js libraries to version 0.26.6. However, now that I have done so, I have ran into an issue with my diagrams.
For some reason, when creating a new diagram, the XML output is invalid. The problem seems to be a $type property that is added to several elements. For example,
<bpmn:sequenceFlow id="SequenceFlow_09sotu1" name="x!=1" sourceRef="ExclusiveGateway_0s5p892" targetRef="EndEvent_1iu1gx7" $type="bpmn:SequenceFlow" di="[object Object]"><bpmn:conditionExpression xsi:type="bpmn:tFormalExpression" language="JavaScript">x!=1</bpmn:conditionExpression></bpmn:sequenceFlow>
or
<bpmndi:BPMNEdge id="SequenceFlow_09sotu1_di" bpmnElement="SequenceFlow_09sotu1" $type="bpmndi:BPMNEdge"><di:waypoint x="1032" y="235" />
This also happens when opening an old diagram (old as in “created” before updating the libraries") and editing one of the existing elements. The $type property is added to whatever I update.
Has anyone ran into this issue in the past?