This code is throwing an exception. I can’t figure what I’m doing differently from a test case from within bpmn-js-element-templates (should import simple process (cloud-templates))
Here’s a repo that reproduces the problem
Here’s a summary of import bits
import BpmnModeler from "camunda-bpmn-js/lib/camunda-platform/Modeler";
import {
BpmnPropertiesPanelModule,
BpmnPropertiesProviderModule,
ZeebePropertiesProviderModule,
} from "bpmn-js-properties-panel";
import ZeebeModdle from "zeebe-bpmn-moddle/resources/zeebe";
import ZeebeBehaviorsModule from "camunda-bpmn-js-behaviors/lib/camunda-cloud";
import ElementTemplateChooserModule from "@bpmn-io/element-template-chooser";
import ElementTemplatesIconsRenderer from "@bpmn-io/element-template-icon-renderer";
import LintingModule from "@camunda/linting/modeler";
import {
CloudElementTemplatesPropertiesProviderModule,
} from "bpmn-js-element-templates";
....
new BpmnModeler({
container: editor.current,
additionalModules: [
ZeebeBehaviorsModule,
BpmnPropertiesPanelModule,
BpmnPropertiesProviderModule,
ZeebePropertiesProviderModule,
CloudElementTemplatesPropertiesProviderModule,
ElementTemplateChooserModule,
ElementTemplatesIconsRenderer,
LintingModule,
],
linting: {
active: true,
},
keyboard: {
bindTo: document,
},
moddleExtensions: {
zeebe: ZeebeModdle,
},
propertiesPanel: {
parent: properties.current,
},
elementTemplates,
});
Error thrown
react-dom.development.js:22839 Uncaught Error: overriding handler for command <propertiesPanel.removeTemplate>
at CommandStack._setHandler (CommandStack.js:551:1)
at CommandStack.register (CommandStack.js:313:1)
at CommandStack.registerHandler (CommandStack.js:331:1)
at registerHandlers$1 (index.js:10:1)
at Injector.invoke (index.esm.js:226:1)
at index.esm.js:326:1
at Array.forEach (<anonymous>)
at index.esm.js:320:1
at index.esm.js:440:1
at Array.forEach (<anonymous>)
Any ideas?