Questions tagged [bpmn-auto-layout]
1 questions
                    
                    0
                    
            votes
                
                2 answers
            
        TypeError: layoutProcess is not a function when using bpmn-auto-layout in reactjs
I have an xml that i want to auto layout. So I am using this bpmn-auto-layout
And I am importing it like this
const layoutProcess = require('bpmn-auto-layout');
and using like this
const layoutedDiagramXML = await layoutProcess(xml);
but it throws…
        
        Sunil Garg
        
- 14,608
 - 25
 - 132
 - 189