Skip to content
This repository was archived by the owner on Sep 20, 2022. It is now read-only.
This repository was archived by the owner on Sep 20, 2022. It is now read-only.

TypeError on deno 1.9 #5

@andykais

Description

@andykais

using the latest compiled plugin

wget https://github.com/crabmusket/deno_sqlite_plugin/releases/download/v0.4/libdeno_sqlite_plugin.so

the following code results in an error

import { Sqlite } from 'https://deno.land/x/sqlite_plugin@v0.4/src/mod.ts'

Deno.openPlugin('./databases/libdeno_sqlite_plugin.so')

const sqlite = new Sqlite()
const db = await sqlite.connect(':memory:')
error: Uncaught TypeError: invalid promise id: expected type `rusty_v8::data::Integer`, got `rusty_v8::data::Value`
  let rawResponse = (Deno as any).core.dispatch(op, encodedRequest);
                                       ^
    at jsonSyncOp (https://deno.land/x/sqlite_plugin@v0.4/src/mod.ts:157:40)
    at Sqlite.connect (https://deno.land/x/sqlite_plugin@v0.4/src/mod.ts:23:20)
    at file:///home/andrew/Code/development/forager/server.ts:6:25

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions