'Denon installation failed in Deno v1.18.0

I tried installing denon for running my deno script

I used the following command from their docs,

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

And the command failed with,

error: TS2345 [ERROR]: Argument of type '"any" | "access" | "create" | "modify" | "remove" | "other"' is not assignable to parameter of type 'FileAction'.
  Type '"other"' is not assignable to type 'FileAction'.
            this.#changes[path].push(kind);
                                     ~~~~
    at https://deno.land/x/[email protected]/src/watcher.ts:150:38

P.S. If this is an expected behavior is there any alternative for denon?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source