Error while displaying diagram with react-bpmn

Hi,

I would like to add a custom plugin to Camunda, which will display particular BPMN diagram. I use React and bundle files with Rollup.

I basically reused code from bpmn-react github example and mainly changed url in order to fetch the data from camunda engine.

I get a following error in the browser:

error

The diagram was deployed without errors.

What can I do to make it work?

It looks like the diagram might be broken. Please share a CodeSandbox that reproduces your issue in a way that we can inspect it.

@barmac Thanks for replying. I was able to render the file correctly in Sandbox, so I thought it may be caused by handling the response of http request. That was true - I was passing the whole json response instead of getting the xml string only

1 Like