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:
- Created 3 years ago
- Comments:13 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 youThis should be temporarily resolved. Not closing rn because of @emmalemma interesting suggestion, that definitely needs discussion.