Cannot start storybook
My steps
- clone repo
- yarn install
- 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>[]'.
I've checked out v5.2.1 to make it work
Why do I have such a problem?
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 :)
should be working in 6.0 now (please re-open if it doesn't)