Closed thorwebdev closed 1 year ago
Hmm, actually looks like there is some mismatch because kysely-postgres-js
is imported via esm.sh whereas postgres
(js) is imported via deno.land
...
It works, but as it stands today you need to ignore the TS error
const db = new Kysely<Database>({
dialect: new PostgresJSDialect({
connectionString: Deno.env.get("DATABASE_URL")!,
options: {
ssl: false,
max: 10,
},
// @ts-ignore
postgres,
}),
}
Not sure if you're able to resolve that wen you're mixing esm and deno.land imports.
I assume this is meant to import the
postgresjs
package rather than deno postgres (https://deno.land/x/postgres@v0.17.0) ?