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

TypeError on deno 1.9 #5

Open
andykais opened this issue Apr 20, 2021 · 0 comments
Open

TypeError on deno 1.9 #5

andykais opened this issue Apr 20, 2021 · 0 comments

Comments

@andykais
Copy link

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/[email protected]/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/[email protected]/src/mod.ts:157:40)
    at Sqlite.connect (https://deno.land/x/[email protected]/src/mod.ts:23:20)
    at file:///home/andrew/Code/development/forager/server.ts:6:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant