Depending on the Webpack configuration, Properties Panel Extension components cannot render.
If you clone any example repos out there that use TextEntryField to customize the properties panel, if you export that library to Camunda Modeler (instead of using a React web-modeler), several issues emerge, that can be fixed by a webpack configuration, but then... no component that is custom gets rendered (a "react-calendar" for example).
Both components to render (<Calendar /> and <TextFieldEntry />) and be able to import and use "useState" and other hooks, those are ALWAYS null/undefined.
Describe the Bug
Depending on the Webpack configuration, Properties Panel Extension components cannot render.
If you clone any example repos out there that use TextEntryField to customize the properties panel, if you export that library to Camunda Modeler (instead of using a React web-modeler), several issues emerge, that can be fixed by a webpack configuration, but then... no component that is custom gets rendered (a "react-calendar" for example).
Steps to Reproduce
Option 1: Change the webpack to something like: https://github.com/pinussilvestrus/camunda-modeler-excel-import-plugin/blob/main/webpack.config.js
Option 2: Change the webpack to somethin like: https://github.com/bpmn-io/bpmn-js-examples/blob/master/properties-panel-extension/webpack.config.js
Expected Behavior
Both components to render (
<Calendar />
and<TextFieldEntry />
) and be able to import and use "useState" and other hooks, those are ALWAYS null/undefined.Environment