Using the BPMN properties panel with Polymer


#1

I tried to import the properties panel in ES6 with polymer.

import propertiesPanelModule from 'bpmn-js-properties-panel/';

but then I always got the error:

Uncaught SyntaxError: The requested module '../../node_modules/bpmn-js-properties-panel/index.js' does not provide an export named 'default'

Do you have any solution for that problem?


Enable element templates in Property Panel
#2

The properties panel project is written in ES 5 and uses CommonJS as a module system. Whether you are able to consume it or not depends on your module bundler alone.

Which bundler do you use in your project?


#3

Thank you for your response :slight_smile:
At the moment we use browserify as a bundler


#4

…which you’ve setup properly to deal with ES modules in dependent libraries?


#5

I build the designer with polymer 3.
In the modeler-app.js I tried to import the poroperties panel but I always got the same error message.
Is this answering your question?
https://bitbucket.org/Christina_Springer/designer_with_polymer/src/master/