I’m actually developing an Angular 5 web application and want to integrate the Viewer (Modeler is not needed) of the bpmn-js project.
For a first test I have created a standalone angular project inspired by the project of narve.
That project is using an older version 0.30.x. I want to use the current version, if possible. You can find my project and more details (readme.md) here:
Following error occurs:
AppComponent.html:1 ERROR TypeError: bpmn_js_1.Viewer is not a constructor at BpmnViewerComponent.ngOnInit (bpmn-viewer.component.ts:20) at checkAndUpdateDirectiveInline (core.js:12411) at checkAndUpdateNodeInline (core.js:13935) at checkAndUpdateNode (core.js:13878) at debugCheckAndUpdateNode (core.js:14771) at debugCheckDirectivesFn (core.js:14712) at Object.eval [as updateDirectives] (AppComponent.html:8) at Object.debugUpdateDirectives [as updateDirectives] (core.js:14697) at checkAndUpdateView (core.js:13844) at callViewAction (core.js:14195)
If I change the version in narve’s project to the latest one, the same error occurs.
Actually I have no idea, what the problem is. Hopefully someone can help me?