react-diagrams icon indicating copy to clipboard operation
react-diagrams copied to clipboard

Cannot start storybook

Open azizmuradovar opened this issue 7 years ago • 4 comments

My steps

  1. clone repo
  2. yarn install
  3. yarn run storybook

ERROR in [at-loader] ./src/models/NodeModel.ts:59:6 TS2345: Argument of type 'PointModel[]' is not assignable to parameter of type 'BaseModel<any, T> | ConcatArray<BaseModel<any, T>>'. Type 'PointModel[]' is not assignable to type 'ConcatArray<BaseModel<any, T>>'. Types of property 'slice' are incompatible. Type '(start?: number, end?: number) => PointModel[]' is not assignable to type '(start?: number, end?: number) => BaseModel<any, T>[]'. Type 'PointModel[]' is not assignable to type 'BaseModel<any, T>[]'. Type 'PointModel' is not assignable to type 'BaseModel<any, T>'. Types of property 'getSelectedEntities' are incompatible. Type '() => PointModel[]' is not assignable to type '() => BaseModel<any, T>[]'. Type 'PointModel[]' is not assignable to type 'BaseModel<any, T>[]'.

azizmuradovar avatar Jul 02 '19 13:07 azizmuradovar

I've checked out v5.2.1 to make it work

ghost avatar Jul 10 '19 07:07 ghost

Why do I have such a problem?

azizmuradovar avatar Jul 11 '19 09:07 azizmuradovar

I created a PR to fix this issue and it was merged recently. Do a git pull of the latest version of the library and if it works close this issue :)

frank-martinez-27 avatar Jul 31 '19 16:07 frank-martinez-27

should be working in 6.0 now (please re-open if it doesn't)

dylanvorster avatar Aug 11 '19 14:08 dylanvorster