denosaurs/denon

Compatibility with Deno 1.13

mashaal opened this issue · 0 comments

  1. Existing Denon install does not seem to work with Deno 1.13

denon run https://deno.land/std/examples/welcome.ts

Running any denon command fails with the error:

error: Found argument '--allow-plugin' which wasn't expected, or isn't valid in this context
	Did you mean --allow-run?
  1. Reinstalling Denon fails with Deno 1.13

deno install -qAf --unstable https://deno.land/x/denon/denon.ts

Trying to reinstall fails with the error:

error: TS2416 [ERROR]: Property 'name' in type 'PartialReadError' is not assignable to the same property in base type 'UnexpectedEof'.
  Type 'string' is not assignable to type '"UnexpectedEof"'.
  name = "PartialReadError";
  ~~~~
    at https://deno.land/std@0.85.0/io/bufio.ts:27:3

Expected behavior: Denon installs and runs

Setup

  • OS: Linux (Elementary 5.1)
  • Deno version: 1.13
  • Denon version: 2.4.7

I've downgraded Deno to 1.12.2 and all commands, including reinstalling Denon seem to work as expected.