tursodatabase / tursodatabase/libsql-client-ts

Unable to run >= 0.6.1 on Edge / v8 runtimes

Open
#228 4 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.