staltz / easy-ssb-pub

An easy-to-host server that runs an SSB "Pub"
GNU Affero General Public License v3.0
209 stars 35 forks source link

Update or version-lock TypeScript #18

Closed pztrn closed 6 years ago

pztrn commented 7 years ago

Debian 9, node 6.9.1, installed using latest method from README and latest sources from Github. Output:

> easy-ssb-pub@4.0.0 start /home/ssb/easy-ssb-pub
> tsc && node dist/index --host $HOST --no-discovery

src/discovery.ts(113,3): error TS2322: Type 'Observable<{}>' is not assignable to type 'Observable<Response>'.
  Type '{}' is not assignable to type 'Response'.
    Property 'text' is missing in type '{}'.
staltz commented 7 years ago

TypeScript's fault for issuing a breaking change as a minor version bump. I'll fix it, but just to make it clear: TypeScript's fault.

pztrn commented 7 years ago

Well, managed to get it working by using commands from Dockerfile, so it look like README needs to be updated.

gmarcos87 commented 7 years ago

Is there any workaround? I have the same problem.

taniki commented 7 years ago

@gmarcos87 edit the package.json and replace the needed typescript version

-    "typescript": "^2.3.2"
+    "typescript": "2.3.2"