bitjson/typescript-starter

node_modules/ava/index.d.ts:5:10 - error TS2339: Property 'observable' does not exist on type 'SymbolConstructor'.

farhad-taran opened this issue ยท 4 comments

  • I'm submitting a ...
    [*] bug report

  • Summary
    Keep getting the following error when trying to run any node command:

$ npm run watch

> typescript-sest@1.0.0 watch C:\Users\farha\source\repos\typescript-sest
> run-s clean build:main && run-p "build:main -- -w" "test:unit -- --watch"


> typescript-sest@1.0.0 clean C:\Users\farha\source\repos\typescript-sest
> trash build test


> typescript-sest@1.0.0 build:main C:\Users\farha\source\repos\typescript-sest
> tsc -p tsconfig.json

node_modules/ava/index.d.ts:5:10 - error TS2339: Property 'observable' does not exist on type 'SymbolConstructor'.

5  [Symbol.observable](): ObservableLike;
           ~~~~~~~~~~


Found 1 error.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! typescript-sest@1.0.0 build:main: `tsc -p tsconfig.json`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the typescript-sest@1.0.0 build:main script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\farha\AppData\Roaming\npm-cache\_logs\2020-06-01T17_24_29_671Z-debug.log
ERROR: "build:main" exited with 2.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! typescript-sest@1.0.0 watch: `run-s clean build:main && run-p "build:main -- -w" "test:unit -- --watch"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the typescript-sest@1.0.0 watch script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\farha\AppData\Roaming\npm-cache\_logs\2020-06-01T17_24_29_736Z-debug.log
claym commented

Yep, having the same issue.

Same error

Looks like updating ava to 3.8.2 and removing the sources in packages.json as explained in this thread #228 (comment) fixes this issue.

Hey all โ€“ sorry to keep you waiting on this!

The latest version of typescript-starter now upgrades all dependencies (and migrates to eslint, as tslint is now deprecated), so this issue should be fixed. ๐Ÿš€