-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: BpmnModdle is not a constructor #18
Comments
For further assistance, please share a CodeSandbox that reproduces your issue in a way that we can inspect it. |
Thanks for sharing! Looks like an incompatibility with the latest |
Hint: the AutoLayout module should be updated to use the correct import statement for the BpmnModdle module. var BpmnModdle = require('bpmn-moddle').default; |
ok,thanks |
Or switch to ES Modules syntax: import BpmnModdle from 'bpmn-moddle';
import Tree from './Tree';
import DiFactory from './DiFactory';
import DiUtil from './DiUtil'; and then export default AutoLayout; This worked for me :) (got the sma bug btw) |
We are open to contributions that fix this. |
Would this definetly fix this issue? I'm also having this problem but I haven't tried this solution, I would open a PR with this if you confirm it works. |
You open the PR and find out 😄 |
I guess I'm going to try this instead |
Closing this issue as we do not plan to follow up on this one, unless we receive an external contribution ( |
Describe the Bug
In our environment, after I used the bpmnModeler.connect() method to connect a line, I needed to automatically layout it, and I got an error:
BpmnModdle is not a constructor
Steps to Reproduce
Example Code snippet
Example CodeSandbox
Expected Behavior
Should not crash.
The text was updated successfully, but these errors were encountered: