CirclonGroup / angular-tree-component

A simple yet powerful tree component for Angular (>=2)
https://angular2-tree.readme.io/docs
MIT License
1.09k stars 489 forks source link

Angular 9 mobix build error #867

Open visyone opened 3 years ago

visyone commented 3 years ago

Minimal reproduction of the bug/regression with instructions:

Hi! Using angular-tree-component v9.0.3 in an updated project from v8 to v9 I get this error when the app start:

ERROR in node_modules/mobx/lib/types/observablemap.d.ts:73:5 - error TS2416: Property 'toJSON' in type 'ObservableMap<K, V>' is not assignable to the same property in base type 'Map<K, V>'. Type '() => IKeyValueMap<V>' is not assignable to type '() => (string | unknown[])[]'. Type 'IKeyValueMap<V>' is missing the following properties from type '(string | unknown[])[]': length, pop, push, concat, and 28 more.

Looking in the package-lock.json file only angular-three-component require mobx as dependency

Expected behavior:

The app compile without errors since mobx was introduced in 9.0.2 as bug fix

Versions of Angular Tree Component, Angular, Node, affected browser(s) and operating system(s):

node 12.19.0 angular: 9.1.12 typescript: 3.8.3 rxjs: 6.5.4 angular-three-component: 9.0.3