halvardssm / deno-nessie

A modular Deno library for PostgreSQL, MySQL, MariaDB and SQLite migrations
MIT License
527 stars 31 forks source link

[BUG] Argument of type 'string | URL' is not assignable to parameter of type 'string' #69

Closed ThisIsMohsen closed 4 years ago

ThisIsMohsen commented 4 years ago

hi, i can init configuration in first step with this command: deno run --allow-net --allow-read --allow-write https://deno.land/x/nessie/cli.ts init

this is output:

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.55.0/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@v0.55.0/path/posix.ts:438: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@0.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@0.51.0/path/posix.ts:433:18

Found 4 errors.
halvardssm commented 4 years ago

Hi @ThisIsMohsen ! Thanks for submitting this bug! The source of this issue is Deno 1.2 due to the breaking changes with the URL signature. We already have an issue tracking this (#67 ), and we are currently waiting for Denomander and Postgres to create a new release version 👍