<p dir="auto">After updating Deno to latest version 1.2.0 I got 2 errors:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="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@v0.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@v0.53.0/path/posix.ts:433:18

Found 2 errors."><pre class="notranslate">error: TS2345 [ERROR]: Argument of <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>string | URL<span class="pl-pds">'</span></span> is not assignable to parameter of <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>string<span class="pl-pds">'</span></span>.
  Type <span class="pl-s"><span class="pl-pds">'</span>URL<span class="pl-pds">'</span></span> is not assignable to <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>string<span class="pl-pds">'</span></span>.
  <span class="pl-k">return</span> new URL(url).pathname
                 <span class="pl-k">~</span>~~
    at https://deno.land/std@v0.53.0/path/win32.ts:911:18

TS2345 [ERROR]: Argument of <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>string | URL<span class="pl-pds">'</span></span> is not assignable to parameter of <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>string<span class="pl-pds">'</span></span>.
  Type <span class="pl-s"><span class="pl-pds">'</span>URL<span class="pl-pds">'</span></span> is not assignable to <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>string<span class="pl-pds">'</span></span>.
  <span class="pl-k">return</span> new URL(url).pathname<span class="pl-k">;</span>
                 <span class="pl-k">~</span>~~
    at https://deno.land/std@v0.53.0/path/posix.ts:433:18

Found 2 errors.</pre></div>
<p dir="auto">I have global deps.ts file with dependencies but are actual @0.61.0<br>
Also I tried run with argument <code class="notranslate">-L debug</code> but no more information.<br>
Any ideas what i can do to locate problem ?</p>
<p dir="auto">After upgrading to 1.2.0, running deno, will fail with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Check file:///Users/xxxxxxx/yyyyyyy/code/src/github.com/nats-io/nats.deno/.deno.test.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: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/path/posix.ts:438:18

Found 2 errors."><pre lang="✘130" class="notranslate"><code class="notranslate">Check file:///Users/xxxxxxx/yyyyyyy/code/src/github.com/nats-io/nats.deno/.deno.test.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: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/path/posix.ts:438:18

Found 2 errors.
</code></pre></div>
<p dir="auto">There's a single reference to URL on a constructor in my project:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    let url = new URL(u);
    if (!url.port) {
      url.port = `${DEFAULT_PORT}`;
..."><pre class="notranslate"><code class="notranslate">    let url = new URL(u);
    if (!url.port) {
      url.port = `${DEFAULT_PORT}`;
...
</code></pre></div>
<p dir="auto">This is on OS X.</p>