Denon get Error TS2339 on start/download etc. since upgrading to deno v1.7.0
See original GitHub issueDescribe the bug After updating to deno v1.7.0 and trying to run a script with denon i get the following error messages (2 Errors):
error: TS2339 [ERROR]: Property ‘url’ does not exist on type ‘NetPermissionDescriptor’. return pd.url ~~~ at https://deno.land/std@0.74.0/permissions/mod.ts:17:25
TS2339 [ERROR]: Property ‘url’ does not exist on type ‘NetPermissionDescriptor’.
? --allow-${pd.name}=${pd.url}
~~~
at https://deno.land/std@0.74.0/permissions/mod.ts:18:44
Then i tried to remove the denon script from $Home/.deno and reinstalling the new 2.4.6 version, but i got the same message:
taskman-deno$ deno install -A -f --unstable https://deno.land/x/denon@2.4.4/denon.ts
Check https://deno.land/x/denon@2.4.4/denon.ts error: TS2339 [ERROR]: Property ‘url’ does not exist on type ‘NetPermissionDescriptor’. return pd.url ~~~ at https://deno.land/std@0.74.0/permissions/mod.ts:17:25
TS2339 [ERROR]: Property ‘url’ does not exist on type ‘NetPermissionDescriptor’.
? --allow-${pd.name}=${pd.url}
~~~
at https://deno.land/std@0.74.0/permissions/mod.ts:18:44
Found 2 errors.
taskman-deno$ deno install -qAf --unstable https://x.nest.land/denon/denon.ts
error: Import ‘https://x.nest.land/denon/denon.ts’ failed: 404 Not Found
To Reproduce Steps to reproduce the behavior:
- Run a denon-script after updating deno version to v1.7.0
- Install denon after updating to deno version to v1.7.0
Expected behavior Running the script or installing the denon version
Setup
- OS: macOS 11.1
- Deno version: deno 1.7.0 (release, x86_64-apple-darwin) v8 8.9.255.3 typescript 4.1.3
- Denon version: 2.4.4 (i think, i removed it to try and fix it with a “try to turn it off and on again”)
Additional info Tried to install another script with the same flags (-qAf) and it worked. Script was udd. The installscript in the deno manual works too. Replicating the issue on another machine lead to the same error
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:12 (1 by maintainers)
Top GitHub Comments
Thanks for the quick reply! sadly the reload did not work.
Since deno.land does not have the fix yet you can install denon from github with
deno install -qAf --unstable https://raw.githubusercontent.com/denosaurs/denon/main/denon.ts