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?
nikku
July 30, 2018, 1:18pm
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?
Thank you for your response
At the moment we use browserify as a bundler
nikku
July 30, 2018, 2:02pm
4
…which you’ve setup properly to deal with ES modules in dependent libraries?
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/