Hello everyone,
I am still quite a newbie in using BPMNjs. After we integrated the BPMN-Modeler in our project, I now want to use the CLI in the backend. I have tried to install this with npm i bpmn-js-cli
(and also with npm install from my package.json) and then import it using const CliModule = require('bpmn-js-cli');
Unfortunately I always get the following error without even addressing the module in the code.
.../server/node_modules/bpmn-js-cli/index.js:1
20:16:31 web.1 | export {
20:16:31 web.1 | ^^^^^^
20:16:31 web.1 | SyntaxError: Unexpected token 'export'
20:16:31 web.1 | at wrapSafe (node:internal/modules/cjs/loader:999:16)
...
Is there any way to install the CLI and Modeler using require?
Thanks,
Lukas