question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Denon get Error TS2339 on start/download etc. since upgrading to deno v1.7.0

See original GitHub issue

Describe 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:

  1. Run a denon-script after updating deno version to v1.7.0
  2. 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

13reactions
MarvinGronhorstcommented, Jan 20, 2021

Thanks for the quick reply! sadly the reload did not work.

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

Warning Implicitly using latest version (2.4.6) for https://deno.land/x/denon/denon.ts
error: TS2339 [ERROR]: Property 'url' does not exist on type 'NetPermissionDescriptor'.
              return pd.url
                        ~~~
    at https://deno.land/std@0.83.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.83.0/permissions/mod.ts:18:44

Found 2 errors.
8reactions
luxwarpcommented, Feb 1, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

denon@2.5.0 | Deno
To use denon ,replace the word deno on the command line when executing your script. ... You can upgrade running deno upgrade ....
Read more >
Denon installation failed in Deno v1.18.0 - Stack Overflow
Edit: This issue has been fixed in denon v2.5.0. Original answer: This is a known bug in denon , an official fix will...
Read more >
che Support multi-arch in web-terminal-operator - TypeScript
Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an ... get Error TS2339 on start/download etc. since upgrading to...
Read more >
DISABLED ... - IssueHint
This issue has been created since 2022-07-06. ... Denon get Error TS2339 on start/download etc. since upgrading to deno v1.7.0, 12, 2021-01-20, 2022-08-04....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found