bpmn-io / bpmn-js-properties-panel

A properties panel for bpmn-js.
MIT License
295 stars 197 forks source link

An error was reported in integration 1.1.1 configuration #707

Closed zhenglei01 closed 2 years ago

zhenglei01 commented 2 years ago

Describe the Bug ERROR in ./node_modules/bpmn-js-properties-panel/dist/index.esm.js 1:4971-5073

Module not found: Error: Can't resolve '@bpmn-io/properties-panel/preact/hooks' in 'D:vueTest\vue-bpmn-demo01\node_modules\bpmn-js-properties-panel\dist'

ERROR in ./node_modules/bpmn-js-properties-panel/dist/index.esm.js 1:5249-5641

Module not found: Error: Can't resolve '@bpmn-io/properties-panel' in 'D:\vueTest\vue-bpmn-demo01\node_modules\bpmn-js-properties-panel\dist'

ERROR in ./node_modules/bpmn-js-properties-panel/dist/index.esm.js 1:5641-5753

Module not found: Error: Can't resolve '@bpmn-io/properties-panel/preact' in 'D:\vueTest\vue-bpmn-demo01\node_modules\bpmn-js-properties-panel\dist'

ERROR in ./node_modules/bpmn-js-properties-panel/dist/index.esm.js 1:6044-6103

Module not found: Error: Can't resolve '@bpmn-io/properties-panel/preact/compat' in 'D:\vueTest\vue-bpmn-demo01\node_modules\bpmn-js-properties-panel\dist'

ERROR in ./node_modules/bpmn-js-properties-panel/dist/index.esm.js 1:6103-6170

Module not found: Error: Can't resolve '@bpmn-io/properties-panel/preact/jsx-runtime' in 'D:\vueTest\vue-bpmn-demo01\node_modules\bpmn-js-properties-panel\dist'

Configure the right toolbar as documented, but report this error. Please help to answer it

Steps to Reproduce

1. main.js import 'bpmn-js-properties-panel/dist/assets/properties-panel.css' // import 'bpmn-js-properties-panel/dist/assets/element-templates.css' // 2. vue文件 import BpmnModeler from "bpmn-js/lib/Modeler"; import { BpmnPropertiesPanelModule, BpmnPropertiesProviderModule, } from "bpmn-js-properties-panel";

this.bpmnModeler = new BpmnModeler({ container: ‘#canvas’, //添加控制板 propertiesPanel: { parent: "#properties", }, additionalModules: [ BpmnPropertiesPanelModule, BpmnPropertiesProviderModule, ], // moddleExtensions: { // camunda: camundaModdleDescriptor, // }, });

Expected Behavior

Environment vue project "bpmn-js": "^9.2.2", "bpmn-js-properties-panel": "^1.1.1",

smbea commented 2 years ago

Please write your issue using one of the templates here and feel free to re-open it.

If none of them seem appropriate, it may be that this issue will be better handled in the bpmn.io forum, where we support people using our tools.