codemonument / deno_audio_logbook

A deno fresh server, with a telegram bot to receive audio messages and a website to show all messages of a user in a calendar
2 stars 0 forks source link

The PlanetScaleDialect constructor from kysely-planetscale seems to miss some required fields #3

Closed bjesuiter closed 1 year ago

bjesuiter commented 1 year ago
Bildschirm­foto 2023-03-06 um 22 13 50

When looking into the PlanetScaleDialect Constructor, and then into it's options, ts seems to be right about the problem:

Bildschirm­foto 2023-03-06 um 22 15 04 Bildschirm­foto 2023-03-06 um 22 15 52

TODO: Figure out what's going on here

bjesuiter commented 1 year ago

New Observation:

PlanetScaleDialectConfig extends Config, coming from import { Config, Field } from '@planetscale/database';

But when i define the dependency explicitely as: "kysely-planetscale": "https://esm.sh/v110/kysely-planetscale@1.3.0?external=kysely&deps=@planetscale/database@1.5.0",

I get this import: import { Config, Field } from 'https://esm.sh/v110/@planetscale/database@1.5.0/X-ZS9reXNlbHk/dist/index.d.js~.d.ts';

Which leads to an invalid url of https://esm.sh/v110/@planetscale/database@1.5.0/X-ZS9reXNlbHk/dist/index.d.js~.d.ts

:(