Can't work when upgrade Deno to 1.13.0
See original GitHub issuefille index.ts as:
import { Database, SQLite3Connector } from 'https://deno.land/x/denodb/mod.ts';
const connector = new SQLite3Connector({
filepath: './database.sqlite',
});
const db = new Database(connector);
console.log(db);
with
deno cache index.ts
output:
Check file:///Users/q/deno/first/index.ts
error: TS2416 [ERROR]: Property 'name' in type 'PartialReadError' is not assignable to the same property in base type 'UnexpectedEof'.
Type 'string' is not assignable to type '"UnexpectedEof"'.
name = "PartialReadError";
~~~~
at https://deno.land/std@0.74.0/io/bufio.ts:27:3
TS2416 [ERROR]: Property 'name' in type 'PartialReadError' is not assignable to the same property in base type 'UnexpectedEof'.
Type 'string' is not assignable to type '"UnexpectedEof"'.
name = "PartialReadError";
~~~~
at https://deno.land/std@0.83.0/io/bufio.ts:27:3
Found 2 errors.
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (4 by maintainers)
Top Results From Across the Web
Installation | Manual - Deno
To update a previously installed version of Deno, you can run: deno upgrade. This will fetch the latest release from github.com/denoland/deno/releases, ...
Read more >Deno 1.13 Release Notes
If you already have Deno installed, you can upgrade to 1.13 by running. deno upgrade. If you are installing Deno for the first...
Read more >deno upgrade shows the error 'Cannot resolve module upgrade'
You have an old version of deno installed that does not have upgrade command. Install the latest Deno version, after that you'll be...
Read more >Add flag to ignore SSL certificate issues #1371 - GitHub
As an update to this, I have a working branch, and it works fine, ... It looks like deno is configured to use...
Read more >Bug listing with status RESOLVED with resolution TEST ...
Bug:233 - "Emacs segfaults when merged through the sandbox." status:RESOLVED resolution:TEST-REQUEST severity:critical · Bug:3888 - "yenta_socket module not ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You can use my fork as a temporary solution. Here it is: https://github.com/stillalivx/denodb
This is a problem with:
mysql@v2.8.0 (it uses std@0.74.0)
mongo@v0.22.0 (it uses std@0.83.0)
The newest version of mongo driver (v0.24.0) uses std@0.99.0, which should be OK, and the mysql repo already has an open issue for this error.