AVe is not a constructor

Viewed 15

I am facing an issue on production which says "AVe is not a constructor". However, it works perfectly fine on local

I am trying to create a workflow diagram, the function provided gets evry value needed to create BpmnJS object and invokes perfectly as a constructor when running on local.

I am not able to figure out why it throws such error on production, I have verifed the versions, used detectChabges, markForCheck and setTimeout to delay certain operations as well as I thought it is going into catch block of some code But, this.bpmnJS = new BpmnJS this only throws not a constructor error

Any idea on how to solve or debug this?

bpmnJS: BpmnJS;

initializeBpmnJS(processInstanceDiagramMetadata: BpwmWorkflowInstanceDiagramMetadataVO): void {
        const { diagramNodes } = processInstanceDiagramMetadata;
        this.bpmnJS = new BpmnJS({
            additionalModules: [
                bpwmWorkflowDiagramRendererModule({
                    diagramNodes,
                    diagramShapeAndConnectionCompletionColor: this.diagramShapeAndConnectionCompletionColor,
                    fcSecurityManager,
                    refresh: this.refresh.bind(this)
                })
            ]
        });
    }
0 Answers
Related