i am trying to add camunda features for my properties panel in my react app but i get a runtime error everytime i try to edit an element.
The exact error i am getting refers to minDash (TypeError:minDash.isArray is not a function). I don’t understand what am i doing wrong, do i need to import something else?
here is my code:
import {
BpmnPropertiesPanelModule,
BpmnPropertiesProviderModule,
CamundaPlatformPropertiesProviderModule
} from 'bpmn-js-properties-panel';
import CamundaBpmnModdle from 'camunda-bpmn-moddle/resources/camunda.json'
const CamundaModeler = () => {
const bpmnModelerRef = useRef(null);
const propertiesPanelRef = useRef(null);
useEffect(() => {
try {
bpmnModelerRef.current = new BpmnModeler({
container: '#bpmnview',
propertiesPanel: {
parent: '#propertiesview'
},
additionalModules: [
BpmnPropertiesPanelModule,
BpmnPropertiesProviderModule,
minimapModule,
CamundaPlatformPropertiesProviderModule
],
moddleExtensions: {
camunda: CamundaBpmnModdle
},
keyboard: {
bindTo: window
}
});
propertiesPanelRef.current = bpmnModelerRef.current.get('propertiesPanel');
return () => {
bpmnModelerRef.current.destroy();
};
} catch (error) {
handleError(error.message);
}
}, []);
...