process-analytics / bpmn-visualization-examples

Examples of use of the `bpmn-visualization` library.
https://cdn.statically.io/gh/process-analytics/bpmn-visualization-examples/master/examples/index.html
Apache License 2.0
55 stars 19 forks source link

[BUG] typescript-angular project fails to compile #592

Closed stpete-beetpharmr closed 6 months ago

stpete-beetpharmr commented 6 months ago

Describe the bug The below errors happen at compile time `Error: node_modules/type-fest/ts41/get.d.ts:93:37 - error TS2344: Type 'BaseType' does not satisfy the constraint 'Record<string | number, any>'.

93 : Key extends keyof WithStringKeys


  node_modules/type-fest/ts41/get.d.ts:79:17
    79 type PropertyOf<BaseType, Key extends string> =
This type parameter might need an `extends Record<string | number, any>` constraint.

Error: node_modules/type-fest/ts41/get.d.ts:94:19 - error TS2344: Type 'BaseType' does not satisfy the constraint 'Record<string | number, any>'.

94 ? WithStringKeys[Key]


  node_modules/type-fest/ts41/get.d.ts:79:17
    79 type PropertyOf<BaseType, Key extends string> =
This type parameter might need an `extends Record<string | number, any>` constraint.

`

To Reproduce Steps to reproduce the behavior:

  1. run npx @angular/cli@15 new bpmn-visualization-app --defaults=true in terminal
  2. copy/paste bpmn-visualization-examples/projects/typescript-angular/ contents to created directory bpmn-visualization-app
  3. run npm start

Expected behavior Code should compile.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.