question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't work when upgrade Deno to 1.13.0

See original GitHub issue

fille 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:closed
  • Created 2 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
stillalivxcommented, Aug 11, 2021

You can use my fork as a temporary solution. Here it is: https://github.com/stillalivx/denodb

import { ... } from "https://raw.githubusercontent.com/stillalivx/denodb/master/mod.ts"
3reactions
jackfiszrcommented, Aug 11, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found