I use bpmn-js in version 8.10.0 with diagram-js 8.2.1. I got following error, if I use the modeler and select a task in the diagram.
The error seams to be similar to the error in following post: Embedding minimap leads to an error: this._canvas.findRoot is not a function
It worked in previous version of bpmn-js and diagram-js.
To get the root element of the canvas, you could use: canvas.getRootElement()
this is not code on my side.
I just start my modeler and select by click on the task one activtity and this error is occured.
Do you know this part?
email@example.com is using
firstname.lastname@example.org under the hood, and the
Canvas.findRoot was added via
diagram-js@8. Maybe you have an implementation mismatch here.
Are you able to share your setup inside a CodeSandbox? This way it would be easier for us to check what’s going on.
many thanks for the very fast replies from your side.
I discovered a very strange situation. In my custom bundle the code area ‘Selection.prototype.select’ was integrated twice and one times with ‘canvas.findRoot()’. After I run ‘npm update’ I got a lot of changes and now no further place with ‘canvas.findRoot()’. I guest this issue is solved.
Many Thanks, Anja
I’m happy to hear your issue was resolved Thanks also for sharing your solution!