tursodatabase / tursodatabase/libsql-client-ts
Unable to run >= 0.6.1 on Edge / v8 runtimes
Open
@giovannibenussi is already working on this.
Since Jun 24, 2024.
- Dominant language
- TypeScript
- Stars
- 576
- Forks
- 69
- PR merge metrics
- No merged PRs in 30d
Description
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();
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.