rete
rete copied to clipboard
Does not compile ...
First of all: The Rete framework is a great piece of software!
Unfortunately I'm not able to compile it from the sources. This is my configuration:
xxx$ npm list
[email protected] /Users/ralph/Code/retejs/rete
├── @babel/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @typescript-eslint/[email protected]
├── @typescript-eslint/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
TypeScript compilation throws several errors, like ...
src/component.ts:14:14 - error TS1243: 'async' modifier cannot be used with 'abstract' modifier.
14 abstract async builder(node: Node): Promise<void>;
src/engine/index.ts:75:17 - error TS2322: Type '(value: unknown) => void' is not assignable to type '() => void'.
75 this.onAbort = ret;
src/engine/index.ts:82:17 - error TS2794: Expected 1 arguments, but got 0. Did you forget to include 'void' in your type argument to 'Promise'?
82 ret();
src/engine/index.ts:92:17 - error TS2794: Expected 1 arguments, but got 0. Did you forget to include 'void' in your type argument to 'Promise'?
92 res();
... and a number of additional ones in src/node.ts
@_add<T extends any>(list: Map<string, T>, item: T, prop: string)
like
src/node.ts:26:27 - error TS2339: Property 'key' does not exist on type 'T'.
26 if (list.has(item.key))
Do I need any kind of special configuration to convince TypeScript to compile?
Seems like TypeScript version is incompatible
https://github.com/retejs/rete/blob/6bdec4f575e7ba5690fe673a6547270863b5013a/package.json#L48
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.