Camunda properties provider not working properly in React app

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);
        }

    }, []);
...

Hi @John_Ouzounis - the BPMN.io project has its own forum! I would recommend asking this question over there. I’ll also give the team a heads up that this question is incoming!

Thank you, i will post it there.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.