libsql-client-ts
libsql-client-ts copied to clipboard
Unable to run >= 0.6.1 on Edge / v8 runtimes
Cannot read properties of null (reading 'split')
TypeError: Cannot read properties of null (reading 'split')
at globalThis.fetch (index.js:8457:59)
at async getIsSchemaDatabase (index.js:3926:18)
at async HttpClient2.getIsSchemaDatabase (index.js:4248:32)
TypeError
I've narrowed this down to a change between 0.6.0 and 0.6.1.
My code runs fine on 0.6.0, but fails on 0.6.1 and 0.6.2.
https://github.com/tursodatabase/libsql-client-ts/compare/v0.6.0...v0.6.1
I'm not using libsql-client directly, but instead through drizzle.
My code is simply:
const client = createClient({
url: process.env.TURSO_URL as string,
authToken: process.env.TURSO_TOKEN as string,
});
const db = drizzle(client, { schema });
const videos = await db.query.youtubeVideoTable.findMany();