BPMN properties panel unable to use additionalModules properly

Hi, I’m quite new using js and the bpmn-js, so, if I’m asking something dumb, my apologies.

I clone the new repo of bpmn-properties-panel to create my own properties panel. It’s works well. So, whitout any modification, I add additionalModules as BpmnColorPickerModule and CreateAppendAnythingModule, following the use extension guide, and also, all ok.
image
But when I click on the three dots or to change the color, I got this error.

image

I didn’t make any changes other than install and import the additional modules and put them to the modeler object.

from this:

const modeler = new Modeler({
  container: $modelerContainer,
  moddleExtensions: {
    custom: customModdleExtension
  },
  keyboard: {
    bindTo: document.body
  }
});

To this:

import BpmnColorPickerModule from 'bpmn-js-color-picker';
import {
  CreateAppendAnythingModule
} from 'bpmn-js-create-append-anything';

const modeler = new Modeler({
  container: $modelerContainer,
  moddleExtensions: {
    custom: customModdleExtension
  },
  keyboard: {
    bindTo: document.body
  },
  additionalModules: [
    BpmnColorPickerModule,
    CreateAppendAnythingModule
  ]
});

I searched for the error but always is related to import a feature from a module out of braces, but seems not be the this case.

Could someone help me?

Regards.

I believe this is a cross post of BPMN properties panel unable to use additionalModules properly · Issue #8 · bpmn-io/bpmn-js-example-react-properties-panel · GitHub or vice versa?

1 Like

Fixed via Fix `mjs` include by nikku · Pull Request #9 · bpmn-io/bpmn-js-example-react-properties-panel · GitHub.

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