Closed somuda86 closed 3 years ago
@tobiasengelhardt is this a valid issue? Just curious here
Which version of the tree are you using?
I have the same issue building with angular 11, I have implemented the to JSON() in that observableset just to let it compile but I don't think is the correct way to solve the issue.
tsconfig.json
{
"compileOnSave": false,
"compilerOptions": {
"skipLibCheck": true, --< add this line
Another one it was required for me was
"allowSyntheticDefaultImports": true,
Angular 9
Thanks @Adam-Michalski
Same problem here with angular 11.
"skipLibCheck": true,
fixed it.
Building with angular 10 not working node_modules/@circlon/angular-tree-component/node_modules/mobx/lib/types/observableset.d.ts:21:22 - error TS2420: Class 'ObservableSet' incorrectly implements interface 'Set'.
Property 'toJSON' is missing in type 'ObservableSet' but required in type 'Set'.
21 export declare class ObservableSet<T = any> implements Set, IInterceptable, IListenable {