theia-ide / sprotty

A next-gen web-based graphics framework
Apache License 2.0
138 stars 23 forks source link

npm run test errors #117

Closed lmcgupe closed 7 years ago

lmcgupe commented 7 years ago

I just cloned sprotty and ran instructions as documented: npm install npm run test which results in

/home/lmcgupe/Desktop/sprotty/client/node_modules/ts-node/src/index.ts:316 throw new TSError(formatDiagnostics(diagnosticList, cwd, ts, lineOffset)) ^ TSError: ⨯ Unable to compile TypeScript

Could there be a missing dependency ?

spoenemann commented 7 years ago

The actual compile error is shown in the lines below the part that you copied:

src/base/view/vnode-utils.ts (20,5): Type '(SModelElement | ((model: SModelElement, event: Event) => void))[]' is not assignable to type 'EventListener'.
  Type '(SModelElement | ((model: SModelElement, event: Event) => void))[]' provides no match for the signature '(evt: Event): void'. (2322)

Fixed that.