Environment (Required on creation):
- Webapps 7.14.4 or newer
Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):
- I cannot include Plugins using a JAR
e.g. https://github.com/camunda/camunda-bpm-examples/tree/master/cockpit/cockpit-fullstack-count-processes
Steps to reproduce (Required on creation):
- Build the linked repo
- Include it to the webapp
- Open Cockpit
Observed Behavior (Required on creation):
- The Plugin is not shown
- An error is displayed in the console: Cannot find module: '....'
Expected behavior (Required on creation):
- The Plugin Works
Root Cause (Required on prioritization):
The browserify import is used: https://github.com/camunda/camunda-bpm-platform/blob/a5bbf421d82035db41de9e938444a026ad597888/webapps/ui/common/scripts/services/plugins/loadPlugins.js#L60
Solution Ideas (Optional):
Replace it with the cached dynamic import window._import