bpmn-io / bpmn-to-image

Convert BPMN 2.0 diagrams to PDF documents or PNG files.
62 stars 38 forks source link

TypeError when running the example code #28

Closed kirstenhh closed 2 years ago

kirstenhh commented 2 years ago

Describe the Bug

Embedded code fails in development mode with "TypeError : The "original" argument must be of type function" This appears to be a known problem coming from Puppeteer; I'm simply hoping there's a workaround that I could take advantage of.

Steps to Reproduce

  1. Include the embedding code given as an example in the README in any package file.
  2. run npm start
  3. check the page in browser: the above error appears in console.

Expected Behavior

Printing to images, or absence of the error.

Environment

pinussilvestrus commented 2 years ago

Are you able to share your setup by any chance? E.g. via CodeSandbox?

kirstenhh commented 2 years ago

I can't share the current setup unfortunately - it's a private repo and I'm not the owner. I'm trying to replicate the issue now using one of the bpmn-js examples, but I get a different error instead so I'm still working on that.

pinussilvestrus commented 2 years ago

Any updates on this one?

kirstenhh commented 2 years ago

I apologize - I forgot I'd left this open. I realized shortly after writing this that A) I was trying to use it with BPMN 7, and that B) I needed to upgrade the whole thing to BPMN 9. Therefore I think it was a version issue, and I'm using some different packages instead. Thank you!

pinussilvestrus commented 2 years ago

Thanks for the update 👍