You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ deno --version
deno 1.4.2
v8 8.7.75
typescript 4.0.3
$ cat file.txt | deno run https://deno.land/std/examples/xeval.ts -- "console.log($, '🐈')"
Check https://deno.land/std/examples/xeval.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/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/path/posix.ts:433:18
Found 2 errors.
I also tried to run the example listed in the xeval.ts file, but this fails with the same error.
I just updated deno from version
1.0.1
to1.4.2
and this seems to break thexeval
example.Before
After
I also tried to run the example listed in the
xeval.ts
file, but this fails with the same error.deno/std/examples/xeval.ts
Line 16 in 04f05d0
Please let me know if you need any further information.
The text was updated successfully, but these errors were encountered: