Run deno run -A /examples/dejs/index.ts or deno run -A /examples/react/server.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@v0.51.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.51.0/path/posix.ts:433:18
Found 2 errors.
Issue
How to reproduce
deno run -A /examples/dejs/index.ts
ordeno run -A /examples/react/server.ts
.Details
Updating dejs to 0.8.0 fixes the issue.
Sidenote
External dependencies in /examples should be consolidated either with an importMap or using a
./examples/deps.ts
file, see https://github.com/asos-craigmorten/opine/issues/41.