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.

Type errors when executing `denon --version` (deno 1.2.0)

See original GitHub issue
❯ denon --version
Check https://deno.land/x/denon@v2.2.0/denon.ts
error: TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'.
  Type 'URL' is not assignable to type 'string'.
  return new URL(url).pathname
                 ~~~
    at https://deno.land/std@0.57.0/path/win32.ts:917:18

TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'.
  Type 'URL' is not assignable to type 'string'.
  return new URL(url).pathname;
                 ~~~
    at https://deno.land/std@0.57.0/path/posix.ts:438:18

TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'.
  Type 'URL' is not assignable to type 'string'.
  return new URL(url).pathname
                 ~~~
    at https://deno.land/std@0.53.0/path/win32.ts:911:18

TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'.
  Type 'URL' is not assignable to type 'string'.
  return new URL(url).pathname;
                 ~~~
    at https://deno.land/std@0.53.0/path/posix.ts:433:18

Found 4 errors.

Setup

  • OS: macOs
  • Deno version: (deno version)
deno 1.2.0
v8 8.5.216
typescript 3.9.2
  • Denon version: (denon --version) Latest (i guess)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ruralantcommented, Jul 14, 2020

Did you upgrade using denon --upgrade?

I didn’t. I just tried and it worked. It was the first time I tried denon, I wasn’t aware of the --upgrade flag. Thank you

1reaction
notfilippocommented, Jul 14, 2020

This should be temporarily resolved. Not closing rn because of @emmalemma interesting suggestion, that definitely needs discussion.

Read more comments on GitHub >

github_iconTop Results From Across the Web

denon@2.3.0 | Deno
To use denon ,replace the word deno on the command line when executing your ... Make sure you are using deno version ^1.2.0...
Read more >
Denon installation failed in Deno v1.18.0 - Stack Overflow
I tried installing denon for running my ...
Read more >
Discussion of Writing a React SSR app in Deno
TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'. Type 'URL' is not assignable to type...
Read more >
Releases.md · Gitee 极速下载/deno - Gitee.com
fix: Expose Error.captureStackTrace (#5254); fix: Improved typechecking error for unstable props (#5503); fix: REPL evaluates in strict mode (#5565); fix: Write ...
Read more >
Deno 1.20 Release Notes
TypeScript 4.6; V8 10.0. If you already have Deno installed, you can upgrade to 1.20 by running: deno upgrade. If you are ...
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