Error "Type 'EventBus' is not generic" when using form-js-editor with Angular

Hi,

I’m using Angular 16, and when i import form-js-editor, i got the following compile error : “Type ‘EventBus’ is not generic”

To make it work i have to modify the following line in \node_modules@bpmn-io\form-js-editor\dist\types\features\dragging\Dragging.d.ts :slight_smile:

_eventBus: import(“diagram-js/lib/core/EventBus”).default<null>;

By

_eventBus: import(“diagram-js/lib/core/EventBus”).default;

Thanks for your help

Another solution is to add in tsconfig.json, the following line

“skipLibCheck” : true

But both solutions aren’t satisfying…

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.