<blockquote>
<p dir="auto">@ I'm running very simple server. But I have some errors. How I can solve this? I already updated to deno v1.2.1. But steel have this error.</p>
</blockquote>
<p dir="auto">error: TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'.<br>
Type 'URL' is not assignable to type 'string'.<br>
return new URL(url).pathname<br>
~~~<br>
at <a href="https://deno.land/std@v0.50.0/path/win32.ts:911:18" rel="nofollow">https://deno.land/std@v0.50.0/path/win32.ts:911:18</a></p>
<p dir="auto">TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'.<br>
Type 'URL' is not assignable to type 'string'.<br>
return new URL(url).pathname;<br>
~~~<br>
at <a href="https://deno.land/std@v0.50.0/path/posix.ts:433:18" rel="nofollow">https://deno.land/std@v0.50.0/path/posix.ts:433:18</a></p>
<p dir="auto">For completeness, we should add <a href="https://nodejs.org/api/assert.html" rel="nofollow">Node's <code class="notranslate">assert</code> module</a>.</p>
<p dir="auto">We should also decide whether we want to include its <a href="https://nodejs.org/api/assert.html#assert_legacy_assertion_mode" rel="nofollow">legacy assertion mode</a>, or if we expect that to be deprecated.</p>