Unable to get gateway started


I’m trying to get webthings gateway working on a Raspberry Pi 3 model B. I am running Raspbian “buster”. All packages are up to date. I’m following the README at https://github.com/WebThingsIO/gateway and have node v10.24.1 and npm 6.14.12.

The “npm ci” command has worked ok. It fails to “npm start”, specifically at the “tsc -p .” stage. I have v4.2.2 of TypeScript installed.

There are a bunch of TS errors. A couple of examples:

node_modules/webdriverio/build/commands/element/getProperty.d.ts(17,1678): error TS2304: Cannot find name 'FormDataEvent'.
src/controllers/actions_controller.ts(40,36): error TS2339: Property 'thingId' does not exist on type '{}'.
src/test/browser/page-object/elements.ts(95,13): error TS2322: Type 'Browser | Element' is not assignable to type '{ $: (this: any, selector: string) => Promise<Element>; }'.

Is it naive of me to thing this would “just work”? Maybe I’m doing something fundamentally wrong. I cannot find anything online about these issues, apart from the “FormDataEvent” thing, which appears to be something missing from TypeScript itself. There’s an open github issue to add it to TS.

Presumably this is working for others. Any advice would be greatly appreciated! Thanks.