Getting error when I try to implement properties panel of bpmn

getting issue when I add properties panel of bpmnjs
I have used this bpmn js version with properties panel.
“bpmn-js”: “^8.2.1”,
“bpmn-js-properties-panel”: “^0.41.0”,

image

Where is this error occurring? Do you have a project/ code sandbox to share?

Hi @Niklas_Kiefer

Here is my code

Thanks for sharing! I had a look and saw you are using an older version of the properties panel (0.41), but using a wrong import for the propertiesPanelModule.

import {
  propertiesPanelModule
} from "bpmn-js-properties-panel";

For the 0.x versions of bpmn-js-properties-panel it should be:

import propertiesPanelModule from "bpmn-js-properties-panel";

The error you are reporting is caused by the fact the imported module is undefined. By the way, I would recommend upgrading to the 1.x version of the properties panel, as the API changed.

Hi @Niklas_Kiefer

I try with updated properties panel but still not working my code. Can u plz suggest me particular version so I try with that version of package.

I updated your example to use the properties panel version according to your custom properties provider.

What I can still see is that the properties panel tries to render although your Next.js component is not rendered at all, so it can’t find the configured parent. I’m not super into Next.js, but it should probably wait with the Modeler instantiation after the component is mounted.

This basic React example might help you.

1 Like

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