fresh icon indicating copy to clipboard operation
fresh copied to clipboard

Property 'writable' does not exist on type 'Writer & Closer'.

Open thedatagata opened this issue 4 years ago • 4 comments

Hello - I ran deno run -A -r https://fresh.deno.dev my-project and hit the error

error: TS2339 [ERROR]: Property 'writable' does not exist on type 'Writer & Closer'. await raw.pipeTo(proc.stdin.writable); at https://deno.land/x/[email protected]/src/dev/mod.ts:127:31

thedatagata avatar Jul 07 '22 17:07 thedatagata

Everything works fine. Could you please provide an output of deno --version and which deno commands?

nikableh avatar Jul 07 '22 20:07 nikableh

I also got this problem and are using Deno 1.13.1

deno 1.13.1 (release, x86_64-unknown-linux-gnu)
v8 9.3.345.11
typescript 4.3.5

For which deno:

$ which deno
/home/firefly/.deno/bin/deno

tsklxiv avatar Jul 08 '22 07:07 tsklxiv

Oh, it turns out that I have a deno collision between the deno installed in Linuxbrew and the old deno I installed a few months ago. Removed the old one makes it work perfectly.

If you are having this problem, try updating your Deno to 1.23.0 or higher, or removing duplicated binary (if you found any) to avoid collision.

tsklxiv avatar Jul 08 '22 08:07 tsklxiv

@thedatagata Can you try out the above solution, if it works you can close this issue

iamsahilsonawane avatar Jul 08 '22 10:07 iamsahilsonawane