optimajet / workflow-designer-angular-sample

WorkflowEngine Designer for Angular
20 stars 6 forks source link

problem with building in angular #13

Open Mouuus opened 4 months ago

Mouuus commented 4 months ago

i have just installed the library package version 10.0.0 and after serving it gives me this error message my angular client version is: 16.1.4 core.mjs:10614 ERROR Error: NG0203 at injectInjectorOnly (core.mjs:611:15) at ɵɵinject (core.mjs:622:60) at Module.ɵɵdirectiveInject (core.mjs:10038:16) at NodeInjectorFactory.WorkflowDesignerComponent_Factory [as factory] (optimajet-workflow-designer-angular.mjs:10:109) at getNodeInjectable (core.mjs:4862:44) at instantiateAllDirectives (core.mjs:12629:27) at createDirectivesInstances (core.mjs:12045:5) at ɵɵelementStart (core.mjs:16336:9) at Module.ɵɵelement (core.mjs:16394:5) at AppComponent_Template (app.component.html:1:1)

optimajet commented 4 months ago

@Mouuus

Judging by error message, the issue is https://angular.io/errors/NG0203. Could you please send the steps to reproduce the error?

Mouuus commented 4 months ago

@optimajet this solution works if i'm using angular cli 17 but i have installed a version that is compatible with angular cli 16.1.4

optimajet commented 4 months ago

@Mouuus

Could you please send the steps to reproduce the error?

Mouuus commented 4 months ago

i have generated a new angular project version("@angular/cli": "~16.1.4") and installed the workflow designer library version (10.0.0) and (10.0.1) then i imported the WorkflowDesignerModule inside the app.module last thing i have added this template <workflow-designer [schemeCode]="schemeCode" [processId]="processId" [designerConfig]="designerConfig"

inside the html file

optimajet commented 3 months ago

@Mouuus Unfortunately, we have no plans to support angular 16 and make any fixes to this version. Please use the angular 17 version.