DEV Community

Discussion on: Iniciando con Deno - API Rest

Collapse
 
miguelcolon profile image
miguelC-olon

Hi, I have the following error when trying to install Drun:

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 deno.land/std@v0.54.0/path/win32.t...

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 deno.land/std@v0.54.0/path/posix.t...

Found 2 errors.