thorwebdev
thorwebdev
DDeno
Created by thorwebdev on 1/17/2023 in #help
example of kysely running on deno deploy?
Not sure if that's a Deno deploy quirk
5 replies
DDeno
Created by thorwebdev on 1/17/2023 in #help
example of kysely running on deno deploy?
Thanks @ndh3193 updating deno std import { serve } from "https://deno.land/std@0.175.0/http/server.ts" makes the function runnable, but unfortunately upon invocation I get
TypeError: Deno.writeAll is not a function
at Connection.startup (https://deno.land/x/pg@v0.6.1/connection.ts:51:20)
at Connection.connect (https://deno.land/x/pg@v0.6.1/connection.ts:36:24)
at async Client.connect (https://deno.land/x/pg@v0.6.1/client.ts:16:9)
at async Pool.connect (https://deno.land/x/pg@v0.6.1/pool.ts:57:9)
at async Er.acquireConnection (https://esm.sh/v106/kysely@0.23.4/deno/kysely.js:5:3773)
at async dr.acquireConnection (https://esm.sh/v106/kysely@0.23.4/deno/kysely.js:2:85672)
at async cr.provideConnection (https://esm.sh/v106/kysely@0.23.4/deno/kysely.js:2:84647)
at async pe.executeQuery (https://esm.sh/v106/kysely@0.23.4/deno/kysely.js:2:41131)
at async a.execute (https://esm.sh/v106/kysely@0.23.4/deno/kysely.js:2:21370)
at async Server.<anonymous> (file:///src/index.ts:25:24)
TypeError: Deno.writeAll is not a function
at Connection.startup (https://deno.land/x/pg@v0.6.1/connection.ts:51:20)
at Connection.connect (https://deno.land/x/pg@v0.6.1/connection.ts:36:24)
at async Client.connect (https://deno.land/x/pg@v0.6.1/client.ts:16:9)
at async Pool.connect (https://deno.land/x/pg@v0.6.1/pool.ts:57:9)
at async Er.acquireConnection (https://esm.sh/v106/kysely@0.23.4/deno/kysely.js:5:3773)
at async dr.acquireConnection (https://esm.sh/v106/kysely@0.23.4/deno/kysely.js:2:85672)
at async cr.provideConnection (https://esm.sh/v106/kysely@0.23.4/deno/kysely.js:2:84647)
at async pe.executeQuery (https://esm.sh/v106/kysely@0.23.4/deno/kysely.js:2:41131)
at async a.execute (https://esm.sh/v106/kysely@0.23.4/deno/kysely.js:2:21370)
at async Server.<anonymous> (file:///src/index.ts:25:24)
5 replies
DDeno
Created by thorwebdev on 1/17/2023 in #help
example of kysely running on deno deploy?
Probably because I copy and paste from examples that are not being updated 😬
5 replies